Skip to content

If streaming, don't compute result set size - #370

Open
bserdar wants to merge 2 commits into
lightblue-platform:masterfrom
bserdar:streaming-mediator
Open

bserdar wants to merge 2 commits into
lightblue-platform:masterfrom
bserdar:streaming-mediator

Conversation

@bserdar

@bserdar bserdar commented Jun 22, 2017

Copy link
Copy Markdown
Contributor

No description provided.

}

if (maxQueryTimeMS > 0) {
if (maxQueryTimeMS > 0&&ctx.isLimitQueryTime()) {

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

bserdar commented Jun 22, 2017 via email

Copy link
Copy Markdown
Contributor Author

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