wingsuitist / couchdb

KubeCapture demo project - please ignore 😇
https://couchdb.apache.org/
Apache License 2.0
0 stars 0 forks source link

Slow on specific Query #1

Open ryanhuntward opened 3 weeks ago

ryanhuntward commented 3 weeks ago

I got this specific couchdb query which is pretty slow:

{
  "selector": {
    "$or": [
      { "type": "ship", "status": "hunting", "target": { "$regex": "whale" } },
      { "random_field": { "$gt": null } }
    ]
  },
  "fields": ["_id", "name", "location", "captain"],
  "limit": 10
}
wingsuitist commented 3 weeks ago

I fixed it for you and built a new image version here: docker.io/apaches/couchdb:3.3.3-patched

I'll create a merge request after some more testing, but this image should work.