Commit 93c9bc7
Predicate Comparison and Merging Utilities for Predicate Push-Down (#668)
* Add unit tests that reproduce the problems with moveWindow on infinite limits
* Handle Infinity limit in move
* Changeset
* Add support for orderBy and limit options in currentStateAsChanges
* Unit tests for currentStateAsChanges
* changeset
* fix for eslint
* Move helper functions to the end of the file
* add predicate utils
* optimise in when all primatives
* optimisations
* changeset
* minusWherePredicates
* Add unit test for OR in both subset and superset that shows bug with OR handling
* Reorder OR handling to fix bug and handle AND similarly
* change chageset
* dedupe code
* add createDeduplicatedLoadSubset function
* convert deduper to a class, with reset, and dedupe inflight
* Simplify matching of inflight requests
* Improve minusWherePredicates such that it can handle common conditions in a conjunction
* Modify DeduplicatedLoadSubset.loadSubset such that it only loads the missing data
* Remove unused predicate helper functions
* Fix eslint issue
* Prettier
* Unify handling of IN and OR
* Handle subset that is false
* Fix isLimitSubset to correctly handle unlimited subsets
---------
Co-authored-by: Kevin De Porre <[email protected]>1 parent 2985ab8 commit 93c9bc7
File tree
8 files changed
+3347
-0
lines changed- .changeset
- packages/db
- src/query
- tests
8 files changed
+3347
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments