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
CellBase (for Transcripts ONLY) is sorting after the pagination. It must sort before the SKIP and LIMIT are being applied. If there is a replicaset present, then the query results will be incorrect.
In the database adapter I did this:
Bson sort = MongoDBQueryUtils.getSort(options); << get SORT from query
options.remove(QueryOptions.SORT); << remove SORT so we don't sort twice!
aggregateList.add(match);
aggregateList.add(sort); << Add SORT here, right after genes
aggregateList.add(unwind);
aggregateList.add(match2);
aggregateList.add(excludeAndInclude);
aggregateList.add(project);
I also tried sort after the projection. The files were the same but they were truncated as the SORT failed:
Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting.
CellBase (for Transcripts ONLY) is sorting after the pagination. It must sort before the SKIP and LIMIT are being applied. If there is a replicaset present, then the query results will be incorrect.
In the database adapter I did this:
I also tried sort after the projection. The files were the same but they were truncated as the SORT failed:
You can opt in to external sorting: https://docs.mongodb.com/manual/reference/command/aggregate/#std-label-aggregate-cmd-allowDiskUse
Going to test this.
The text was updated successfully, but these errors were encountered: