Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CouchDB indexing blocking atlas loading #625

Open
ahayes opened this issue Feb 15, 2017 · 1 comment
Open

CouchDB indexing blocking atlas loading #625

ahayes opened this issue Feb 15, 2017 · 1 comment
Labels
CouchDB CouchDB related Enhancement Desired improvement to design or implementation that adds value. Java Nunaliit Java related JavaScript Nunaliit JavaScript related
Milestone

Comments

@ahayes
Copy link
Member

ahayes commented Feb 15, 2017

Could we experiment with the stale=update_after option when querying CouchDB to see if we can avoid waiting for it to reindex? This is affecting active atlases where data is being imported and changed in regular use.

@ahayes ahayes added the Enhancement Desired improvement to design or implementation that adds value. label Feb 15, 2017
@ahayes ahayes added this to the 2.2.9 milestone Feb 15, 2017
@ahayes
Copy link
Member Author

ahayes commented Apr 13, 2022

I think it is worth exploring the stale option to handle situations where there is a lot of data being loaded or changed in an active atlas.

One other thing that causes this issue is when a design document change results in a rebuild of all the views associated with it. Because almost all our views that matter to an atlas are stored on the atlas document, along with the contents of htdocs, it can happen that what seems like an innocuous change in htdocs can cause the atlas to stall until all the views are re-indexed.

This later situation could potentially be resolved by creating separate design documents for views, and maybe splitting out expensive views like full text and geometry bounding box indexing into their own design docs. I believe that would then prevent them from being rebuilt unless the view code itself changed.

@ahayes ahayes added JavaScript Nunaliit JavaScript related CouchDB CouchDB related Java Nunaliit Java related labels Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CouchDB CouchDB related Enhancement Desired improvement to design or implementation that adds value. Java Nunaliit Java related JavaScript Nunaliit JavaScript related
Projects
None yet
Development

No branches or pull requests

2 participants