Skip to content

Conversation

@Rohanhos
Copy link
Contributor

@Rohanhos Rohanhos commented Dec 9, 2025

Related issue: #175

Background:
For CouchDB, getSessionsByQuery calls _find which scans the entire database if no indexes are used, slowing down query times.
image

Inside CouchDB, before changes:
image

Solution:
Create indexes with fields matching the required selectors in the CouchDB, removing the warning and speeding up query times.
image

Inside CouchDB, after changes:
image

Notice the four new design documents, they hold the new Mango indexes.

Rohanhos and others added 2 commits December 9, 2025 16:43
Co-Authored-By: zeynepcaliskan <143728674+zeynepcaliskan@users.noreply.github.com>
Co-Authored-By: zeynepcaliskan <143728674+zeynepcaliskan@users.noreply.github.com>
@Rohanhos Rohanhos requested a review from birme as a code owner December 9, 2025 16:11
@birme birme merged commit e9762d0 into Eyevinn:main Dec 11, 2025
3 checks passed
@Rohanhos Rohanhos deleted the add-index-to-session-query branch December 15, 2025 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants