Fwiw,

I don't think the filesystem adapter is what you're after with sqlite. It's 
not that you want to build a single tw on the fly from a sqlite db but only 
during startup — as the nodejs --build command would do with those *.tid 
files — only to forget all about it until you hit save to then dump all 
tiddlers into the same local db, effectively overwriting the entire db on 
every TiddlyWiki save.

In other words, SyncAdapter possibly means: individual (lazy?!?) loading of 
(skinny) tiddlers on startup and storing changes to tiddlers "on demand", 
i.e. individually, whence changed. One way where a db could majorly improve 
things is if skinny tiddlers where batched up into say buckets (or bags as 
they're called in TiddlyWeb) and whenever I would first access a tiddler 
from the bag I'd have the option to either load that tiddler only (via the 
db connector) or the entire bag so as to speed things up later.

The bag concept would help to more effectively manage batched up chunks of 
data that are of interest to me in a given section ...which could actually 
be spread a across different sources / connected via different connectors. 
So I could have a FAQ bag that would only be loaded if anyone bothered to 
access a FAQ tiddlers.

I could even have bags that are not loaded at all on startup, not even 
skinny... and if I was opening that "not-existing" tiddler, my sync adapter 
could notice that there is such a tiddler in bags x y z and ask me if it 
should load one of these instead... and indicate the source bag and 
connection it all came from.

As for the "ServerMechanism", the development documentation unfortunately 
leaves us with a bit of a blank.

Best wishes,

Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b7f0659b-a309-45ed-930d-087e4e83245f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to