Hello,

Sorry if the tittle is not clear enough, but I can't find any other way to 
entitle this.

This is about what is the best way to build an index. This is for the 
tiddlydrive project. Currently the index is very simple: just a collection 
of value pairs title:id. This has the advantage that is very fast and it is 
already built in google apps script. This has the disadvantage that I can't 
easily distinguish on what folder is each file. I am thinking in several 
ways to build a different index, but I'm not sure how to do it. I want to 
keep it simple, so it is parsed fast (because I have to move to a json 
file). Here are the ideas I have


1) one file, with all the tiddlers containing the title and its ID

{
    HelloThere : { id:0b-fdfdsdsfdsf , folder: main },
    OtherTiddler: { id: 0bdklsjfskdjf, folder: myFolder}
}

This has the disadvantage that only one tiddler title can be indexed, no 
matter in which folder it is.

2) one file, with the tiddlers grouped by folder

{
    main: { HelloThere : { id:0b-fdfdsdsfdsf},
                 OtherTiddler: { id: 0bdklsjfskdjf}
              }
    myFolder: { Hello : { id:0b-fdfdsdsfdsf},
                 OtherTiddler: { id: 0bdklsjfskdjf}
              }
  }

This has the advantage that you can have tiddlers indexed by folder. It is 
more complex and it could be harder to get all the tiddlers.

Any other idea is also welcome.

-- 
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.

Reply via email to