I think you should construct the indexes in a way that they...
- are as simple as possible
- simplify your code as much as possible
...and perhaps use more than one index, after all,
to help you achieve that end...
without making things too slow.
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
}
}
*folders listing id per title*
ids per folder indexed by title
{
main: {
HelloThere : 0b-fdfddffdsf,
OtherTiddler: 0bdklsjfskdjf
}
myFolder: {
Hello : 0b-fdfdgresfdsf,
OtherTiddler: 0bdklsjfskdjf
}
}
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 http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.