Is it already possible to definie an order or priority of pages / folders for the (first) sync?
Background of my question:
From time to time I want to use Silverbullet from a “virgin” PC or browser. The first sync takes quite a while, but during that time my index page does not work correctly. On the page I use a lot of queries and functions, and it looks like the pages with definitions are simply not synced yet.
My Idea would be to define some folders or pages with a “higher” priority (the ones, where my scripts, Styles etc are located), so they are synced first. This would enable using the index page right at the beginning.
Does that make sense?
One caveat is, of course, that at the beginning the scripts do not have information of all the pages / tags,etc. So while I write this, I’m not even sure, if it would help, if I see the functions work, but without any content to display…
Maybe I’ll have to think that through better
As far as I remember, we do sync the files only, and the index is built afterwards on the client locally, right?
I can imagine a priority queue where the index page will be first one, then the meta pages, and the rest will go in tree traversal order. If you navigated to whatever page of interest during the sync, it will be moved to the first place in the queue, or something like that… Just random probably stupid idea.
This is not supported right now, but it’s doable in principle. How would you specify this sync order? Also, right now I basically stop rendering any of the lua stuff until a full index completes because there’s just so many cases where the right data has not been indexed (including space lua scripts) yet. Not sure how to determine what a “safe” time would be to actually activate all this stuff for it to not error out e.g. because you’re calling a function defined in a page that has not been indexed yet.
There was another question somewhere about indexing Space Lua, Space Style, etc. If we have these indexed (with parent page, of course) the ordering could be done much better, I think.