This repository was archived by the owner on Dec 13, 2023. It is now read-only.
File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -612,6 +612,11 @@ The following optimizer rules may appear in the `rules` attribute of a plan:
612
612
Appears when a ` SORT RAND() LIMIT 1 ` construct is removed by moving the
613
613
random iteration into an ` EnumerateCollectionNode ` .
614
614
615
+ The RocksDB storage engine doesn't allow to seek random documents efficiently.
616
+ This optimization picks a pseudo-random document based on a limited number of
617
+ seeks within the collection's key range, selecting a random start key in the
618
+ key range, and then going a few steps before or after that.
619
+
615
620
- ` remove-unnecessary-calculations ` :
616
621
Appears if ` CalculationNode ` s are removed from the query. The rule
617
622
removes all calculations whose result is not referenced in the query (note
Original file line number Diff line number Diff line change @@ -611,6 +611,11 @@ The following optimizer rules may appear in the `rules` attribute of a plan:
611
611
- ` remove-sort-rand-limit-1 ` :
612
612
Appears when a ` SORT RAND() LIMIT 1 ` construct is removed by moving the
613
613
random iteration into an ` EnumerateCollectionNode ` .
614
+
615
+ The RocksDB storage engine doesn't allow to seek random documents efficiently.
616
+ This optimization picks a pseudo-random document based on a limited number of
617
+ seeks within the collection's key range, selecting a random start key in the
618
+ key range, and then going a few steps before or after that.
614
619
615
620
- ` remove-unnecessary-calculations ` :
616
621
Appears if ` CalculationNode ` s are removed from the query. The rule
You can’t perform that action at this time.
0 commit comments