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

Feature request : Add option for automatic threshold heap -> stable memory #194

Open
Kyliux opened this issue Aug 30, 2023 · 0 comments
Open

Comments

@Kyliux
Copy link

Kyliux commented Aug 30, 2023

The idea is to optimise the loading speed, but also to choose dynamically other type of Data to be in the heap ( of course we keep the blog structure in heap memory )

Since the website structure might not use all the heap memory, the idea would be to have a third option : ephemeral in the list of ( Heap, Stable, ephemeral ) to use what is left of the heap memory for often used data ( popular or recent stuff ).

While "Popular" might quite be complicated to judge, "Recent" stuff would be quite easy to spot using just the timestamp of the collections. My suggestion is that for every satellite, we calculate the memory left from the heap for collection that are the most recents.

PROS :

  • It wouldnt change much for a website like juno.build, but for a blog giving regular news, that would allow the new collections, and the overal page, to load faster and cheaper. - Without manually change the data storage by hand -

CONS :

  • New feature induce dev costs/time.
  • Difficulty to see if a regular check of memory state would not add superior extra cost.
  • Difficulty to see if the change of heap to stable memory wouldn't also add extra cost.

This ephemeral boolean option should be coded when we setDocs, so we do not need to manually go to the satellite UI.

Tell me what you think about it, it is also hard to know how slow the stsable memory is to judge if this is really necessary.

Cheers and keep the great work David 👍 !

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

No branches or pull requests

1 participant