Skip to content

Implementation of the executeQuery method of StdCouchDbConnector,#192

Open
ceefour wants to merge 1 commit intohelun:masterfrom
soluvas:preferget
Open

Implementation of the executeQuery method of StdCouchDbConnector,#192
ceefour wants to merge 1 commit intohelun:masterfrom
soluvas:preferget

Conversation

@ceefour
Copy link
Contributor

@ceefour ceefour commented Jul 14, 2014

from the discussion in #165,
which prefers GET HTTP method even in case of multiple keys.
It is more appropriate for hosted services like Cloudant
where POST requests are charged more than GET.

However, if the HTTP request length exceeds MAX_KEYS_LENGTH_FOR_GET characters,
it will use POST HTTP method.

ViewQuery needed to be factored slightly to support its usage.

from the discussion in helun#165,
which prefers `GET` HTTP method even in case of multiple keys.
It is more appropriate for hosted services like <a href="http://cloudant.com/">Cloudant</a>
where `POST` requests are charged more than `GET`.

However, if the HTTP request length exceeds `MAX_KEYS_LENGTH_FOR_GET` characters,
it will use `POST` HTTP method.

`ViewQuery` needed to be factored slightly to support its usage.
@YannRobert
Copy link
Collaborator

hi @ceefour

why do you need a new public method getKeysAsJsonArray() on ViewQuery when you already have getKeysValues() and getKeys().
You should be able to implement your new class without changing existing classes.

was the dependency change on logging framework nescessary ?
also, changes on code comments and JavaDoc would better be proposed in a separate PR, to avoid confusion.

Copy link
Collaborator

@YannRobert YannRobert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment #192 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants