You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: guarantee a well-defined order for all flexSearch queries
A flexSearch query without orderBy will now use the primarySort (flexSearchOrder) as order. If no flexSearchOrder is configured, this defaults to createdAt_DESC, id_DESC. If flexSearchOrder is configured, createdAt_DESC, id_DESC will always be appended to make order deterministic.
A flexSearch query with an explicit orderBy that contradicts with the primarySort (so primarySort cannot be used) will also use an absolute order now.
The performance effect should be relatively minor because using primary sort is very efficient.
Copy file name to clipboardExpand all lines: src/schema-generation/flex-search-generator.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -222,8 +222,10 @@ export class FlexSearchGenerator {
222
222
...schemaField,
223
223
transform: (sourceNode,args,context)=>{
224
224
constassertionVariable=newVariableQueryNode();
225
-
// If a filter or an order_by is specified, a pre-execution query node is added that throws a TOO_MANY_OBJECTS_ERROR if the amount of objects the filter or order_by is
226
-
// used on is to large
225
+
// If a filter or an order_by is specified, a pre-execution query node is added
226
+
// that throws a TOO_MANY_OBJECTS_ERROR if the amount of objects returned by the
227
+
// flexSearchFilter is too large. This prevents performance issues with
0 commit comments