New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove SimpleQueryEngine #4117
Remove SimpleQueryEngine #4117
Conversation
|
Size Analysis ReportAffected ProductsNo changes between base commit (c76e1ff) and head commit (059facc). Test Logs
|
Note: The diff here is kinda bad, but I renamed index_free_query_engine.ts to query_engine.ts and edited some comments. The diff is clearer in IntelliJ/Git directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, with two ultra-minor nits.
* - Limit queries where a document edit may cause the document to sort below | ||
* another document that is in the local cache. | ||
* | ||
* - Queries that have never been CURRENT or free of Limbo documents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ultranit: I think that the "L" in "Limbo" can be lowercase, since "limbo" is not a proper noun.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. I do consider "Limbo" more of a concept, rather than just the state that it refers to. Fixed either way though.
@@ -67,25 +66,27 @@ const MISSING_LAST_LIMBO_FREE_SNAPSHOT = SnapshotVersion.min(); | |||
* `getDocumentsMatchingQuery()` to detect index-free execution. | |||
*/ | |||
class TestLocalDocumentsView extends LocalDocumentsView { | |||
expectIndexFreeExecution: boolean | undefined; | |||
exceptFullCollectionScan: boolean | undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: "exceptFullCollectionScan" should be "expectFullCollectionScan".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This PR addresses a long outstanding TODO and removes
SimpleQueryEngine
, which existed to make IndexFreeQueryEngine optional during development. This PR makes IndexFreeQueryEngine the only QueryEngine.