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

Avoid algolia index number limitation in dev #677

Closed
arkid15r opened this issue Jan 31, 2025 · 8 comments · Fixed by #755
Closed

Avoid algolia index number limitation in dev #677

arkid15r opened this issue Jan 31, 2025 · 8 comments · Fixed by #755
Assignees

Comments

@arkid15r
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
We're facing algolia index limit (20 instances) problem. For development environment we want to control what exactly is indexed

Describe the solution you'd like
Implement enable/disable index functionality for dev environment.
Add a custom register decorator to apps.common.index that behaves like original algoliasearch_django.decorators.register decorator for enabled index models and does nothing for models we don't want to index locally. It should skip indexing for local (development) environment only. Make sure a model is identified by app/model name pair to avoid confusion if same name models exist in different apps.
Create a list of excluded models (all other models are indexed by default). Make sure there is a way to override the list using .env variable (a list of comma separated values with app/models name items to override).

@github-project-automation github-project-automation bot moved this to Backlog in Project Nest Jan 31, 2025
@arkid15r arkid15r moved this from Backlog to Todo in Project Nest Jan 31, 2025
@bhagyashree980
Copy link
Collaborator

Please assign me

@bhagyashree980
Copy link
Collaborator

I will find out the solution

@arkid15r
Copy link
Collaborator Author

@bhagyashree980 this is an advanced task that requires Algolia knowledge and Nest backend experience. I was hoping @nitinawari could tackle that.

@nitinawari
Copy link
Collaborator

Ok assign plz

@arkid15r arkid15r moved this from Todo to In progress in Project Nest Jan 31, 2025
@nitinawari
Copy link
Collaborator

I have analyzed the indices in Algolia and identified
8 indices used for sorting
and
5 indices for search suggestions.
If any contributor needs to work on sorting or search suggestions, they can easily enable these indices by updating the .env file.

@arkid15r
Copy link
Collaborator Author

I have analyzed the indices in Algolia and identified 8 indices used for sorting and 5 indices for search suggestions. If any contributor needs to work on sorting or search suggestions, they can easily enable these indices by updating the .env file.

Sounds fair, we're on the same page.

@arkid15r
Copy link
Collaborator Author

arkid15r commented Feb 4, 2025

Any updates on this? It's something we want to address rather sooner than later.

@nitinawari
Copy link
Collaborator

i really sorry for late update , now PR is open for review

@github-project-automation github-project-automation bot moved this from In progress to Done in Project Nest Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants