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

Add latest entries capability #57

Open
Asone opened this issue Jun 27, 2023 · 1 comment
Open

Add latest entries capability #57

Asone opened this issue Jun 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Asone
Copy link
Owner

Asone commented Jun 27, 2023

Right now the core service keeps in memory the X last entries for each feed in memory.

It could be useful to allow to retrieval of the latest entries stored in memory, be it for a single feed or for the whole.

@Asone Asone added the enhancement New feature or request label Jun 27, 2023
@Asone
Copy link
Owner Author

Asone commented Jul 1, 2023

Current code does not allow to retrieve the latest entries in memory.

This is due to the fact we don't store the entries themselves, but rather the guid of an entry in a Vec to process the matching.

Thus, i still like the idea to be able to retrieve the latest entries, however i think i'd have to find a way to make this efficient. Replacing current map storage with a HashMap containing the whole entry would greatly increase the memory consumption, which seems to me undesirable.

Maybe we could use an optional flag to enable/disable a parallel storage that would allow us such retrieval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant