File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4372,18 +4372,18 @@ static enum ndb_query_plan ndb_filter_plan(struct ndb_filter *filter)
4372
4372
return NDB_PLAN_PROFILE_SEARCH ;
4373
4373
}
4374
4374
4375
- // this is rougly similar to the heuristic in strfry's dbscan
4375
+ // TODO: fix multi-author queries
4376
4376
if (search ) {
4377
4377
return NDB_PLAN_SEARCH ;
4378
4378
} else if (ids ) {
4379
4379
return NDB_PLAN_IDS ;
4380
4380
} else if (relays && kinds && !authors ) {
4381
4381
return NDB_PLAN_RELAY_KINDS ;
4382
- } else if (kinds && authors && authors -> count <= 10 ) {
4382
+ } else if (kinds && authors && authors -> count == 1 ) {
4383
4383
return NDB_PLAN_AUTHOR_KINDS ;
4384
- } else if (authors && authors -> count <= 10 ) {
4384
+ } else if (authors && authors -> count == 1 ) {
4385
4385
return NDB_PLAN_AUTHORS ;
4386
- } else if (tags && tags -> count <= 10 ) {
4386
+ } else if (tags && tags -> count == 1 ) {
4387
4387
return NDB_PLAN_TAGS ;
4388
4388
} else if (kinds ) {
4389
4389
return NDB_PLAN_KINDS ;
You can’t perform that action at this time.
0 commit comments