El martes, 23 de agosto de 2016, 4:13:47 (UTC+2), Brian Theado escribió: > > Replying to my own message as I was mistaken. See below >
Hello again Brian > I didn't test well enough and I fooled myself into thinking the main TW > download/save button in the sidebar was not saving the tiddlers stored in > the browser storage. But when I looked closer, I found the pouchdb tiddlers > were there in the downloaded html file. > > So the download/save button can already be used as a method for backing up > the pouchdb data. > Let me be 100% clear on this. The download button at this moment behaves exactly as it normally does: downloads a *copy of the currently loaded wiki*. Please note the emphasis at loaded wiki. This small detail has one big and important fact: Only the data that is currently loaded in memory is included. What does this mean? By default, when tiddlywiki uses a sync-adaptor it first requests to it all skinny tiddlers. Those are tiddlers without the text field. When that tiddler is opened then the text field is downloaded. Let's review one example: 1. You open your NoteSelf wiki. All the skinny tiddlers are loaded from the local DB. Those tiddlers are not completed, they miss the text field. 2. You add some tiddler with some text. That tiddler is saved to the local database and to the wiki store (currently loaded wiki) 3. You save the wiki. What you will get is a TW with your tiddlers for this editing sessions and maybe those that you have opened for reading. To be honest, I can easily fix this situation by returning the FAT(full) tiddlers when skinny ones are requested, but the convention is to not do that. Also it could important impact on memory usage and performance because all the tiddlers would be loaded into memory. This may not be very important on desktops, but it is on mobiles and slow computers where TW behaves very slowly. Maybe I can include it as a configurable option and let every user chose what they want. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7314e0e1-9088-4794-927c-72403c2260db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

