Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Simple index mechanism #28

Open
nickbe opened this issue Sep 4, 2018 · 2 comments
Open

Simple index mechanism #28

nickbe opened this issue Sep 4, 2018 · 2 comments
Labels
enhancement V1 - Feature Request Version 1 Feature Request

Comments

@nickbe
Copy link

nickbe commented Sep 4, 2018

Would it be possible to implement some sort of index mechanism?
This way queries which refer to indexed fields would be found much faster.

@timothymarois
Copy link
Member

Hi @nickbe. Yes, love the idea. That is on the list of features to add. Though I'm not sure when I'll be able to implement it yet. I'm assuming a good idea would be to create a config variable, like index and you can define an array of fields. Then the first time it runs it builds the index, and then any updates/deletes would have to rebuild indexes, or clear them out and then rebuild the index on the next query.

@timothymarois timothymarois added enhancement V1 - Feature Request Version 1 Feature Request labels Sep 4, 2018
@aalfiann
Copy link

aalfiann commented Feb 4, 2019

AFAIK, create index is to avoid scanning all documents to display the results.

I think to create index will be hard to implement because basically an array will loop from the first until the end and right now, the design of this project seems not possible.

Yes maybe there is another way but it may refactor the whole design of this project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement V1 - Feature Request Version 1 Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants