Skip to content

Conversation

bserdar
Copy link
Contributor

@bserdar bserdar commented Jun 22, 2017

No description provided.

@@ -85,7 +85,7 @@ public long find(CRUDOperationContext ctx,
cursor.setReadPreference(readPreference);
}

if (maxQueryTimeMS > 0) {
if (maxQueryTimeMS > 0&&ctx.isLimitQueryTime()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this new isLimitQueryTime flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added that thinking with streaming, there is no need, but that will still be useful if you submit a long running query, so it is there just in case.

Copy link
Contributor

Choose a reason for hiding this comment

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

Still don't know why maxQueryTimeMS is not enough in streaming context.


int numMatched=0;
int nRetrieve=0;
if(ctx.isComputeMatchCount()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps we can rename this flag to computeCounts and use it for modifiedCount too? lightblue-platform/lightblue-core#789

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'll rename

@bserdar
Copy link
Contributor Author

bserdar commented Jun 22, 2017 via email

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

Successfully merging this pull request may close these issues.

2 participants