El miércoles, 3 de diciembre de 2014 09:51:58 UTC+1, Tobias Beer escribió:
>
> I think you should construct the indexes in a way that they...
>
> - are as simple as possible
> - simplify your code as much as possible
>
> I agree with that, and that Is what I am trying to do
> ...and perhaps use more than one index, after all,
> to help you achieve that end...
> without making things too slow.
>
>
I also though about that, but this requires exactly the double of file
writes, or, at least, a single file with a double size.
> Assuming that ids are globally unique:
> What about two indexes like this?
>
> *titles listing folder per id*
>
> {
> HelloThere : {
> 0b-fdfdsdsfdsf : main,
> 0b-fdfdsdsfwer : otherFolder
> },
> OtherTiddler: {
> 0bdklsjfskdjfs : myFolder
> }
> }
>
>
That makes sense but in the other way, foldername:id. But this assumes that
the same tittle identifies the same tiddler, which could not be true, and
that's why those tiddlers are on different folders.
> *folders listing id per title*
>
> ids per folder indexed by title
> {
> main: {
> HelloThere : 0b-fdfddffdsf,
> OtherTiddler: 0bdklsjfskdjf
> }
> myFolder: {
> Hello : 0b-fdfdgresfdsf,
> OtherTiddler: 0bdklsjfskdjf
> }
> }
>
>
This is useful when you want to check tiddlers by folder, but not much
efficient when you want to list all the tiddlers. Maybe we should not
provide the ability to fetch all the tiddlers but only based on folders.
That's why folders are used for. In which scenario would you like to get
all tiddlers in a drive folder? I think in sub-folders as a way to separate
wiki contents.
--
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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.