Skip to content

Conversation

ato
Copy link
Member

@ato ato commented Dec 11, 2020

We maintain the ability to stream results by moving <request> after <results>. This change seems to be compatible with both OpenWayback and Pywb. I couldn't find any other clients using the XML protocol to check.

In order to prevent runaway slow queries a new --max-num-results limit is added. This limits the number of extra records that will be scanned when calculating the numresults statistic as a safety measure to prevent queries that were fine before this change suddenly becoming much slower. It does not actually limit the actual results returned though so clients can still stream larger result sets than this limit if they request them. In future it might be nice to make this a per-request option.

Closes #97. CC @kris-sigur.

ato added 2 commits December 11, 2020 14:01
Tested compatible with OpenWayback. Pywb ignores <request> entirely. I
couldn't find any other clients using the XML protocol to test.
We put a limit on the number of records we'll scan to mitigate the
query slowdown this causes. Tested compatible with OpenWayback.
@ato ato merged commit edecbf9 into master Feb 9, 2021
@ato ato deleted the numreturned branch February 9, 2021 13:57
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.

XML protocol: numreturned and numresults
1 participant