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

Date Indexing Rework #1074

Open
ahayes opened this issue Aug 18, 2022 · 3 comments
Open

Date Indexing Rework #1074

ahayes opened this issue Aug 18, 2022 · 3 comments
Assignees
Labels
Enhancement Desired improvement to design or implementation that adds value.

Comments

@ahayes
Copy link
Member

ahayes commented Aug 18, 2022

The current date indexing system involving the creation and maintenance of a org.nunaliit.date_clusters document and couchdb date-index view is falling over when the number of documents containing nunaliit date objects gets high (~20,000+).

This issue is to track an evaluation and redesign effort.

@ahayes ahayes added the Enhancement Desired improvement to design or implementation that adds value. label Aug 18, 2022
@billingb
Copy link
Collaborator

billingb commented Sep 15, 2023

After investigating the code it appears that the servlet and this table are used for searching dates from the search (magnifying glass) and no where else that I can find.

this.dateService.getDocIdsFromInterval({

@ahayes
Copy link
Member Author

ahayes commented Sep 15, 2023

Thanks @billingb. Any thoughts on how to refactor to avoid requiring this enormously deep JSON document while keeping the functionality? I imagine that the function may also be used by some atlases within custom timeline widget code.

One possibility might be to revisit search now that we are on CouchDB 2.x. I believe there is more there now than there was when the original search index views and code were written.

@billingb
Copy link
Collaborator

I checked the custom timeline code I could find and didn't see any network calls for the date servlet. It is possible I'm missing them but I couldn't find them. I think the timeline widget does the filtering browser side.

I'm looking into the JSON document (which is really a serialized tree). It seems to produce a view and I'm looking to see how else we can do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Desired improvement to design or implementation that adds value.
Projects
None yet
Development

No branches or pull requests

2 participants