Replies: 2 comments 11 replies
-
Hi @linonetwo the work I did last year on SQLite in the browser via WASM uses a schema very similar to your example from TiddlyGit: The main disadvantage of this approach is that, as you note, having the field values in a JSON blob is not conducive to performing filter operations on field values within filters. My goals include being able to compile filters into SQL queries that operate entirely within the database. If you're not familiar with SQLite, you may find these short papers interesting:
|
Beta Was this translation helpful? Give feedback.
-
We might also need a indexer table, to store result of link-indexer. There is bug report tiddly-gittly/TidGi-Mobile#3 that says backlink[] not working when using lazy-loading on mobile. This kind of filter operator ( |
Beta Was this translation helpful? Give feedback.
-
I see in #7915 @Jermolene , we have following long table
Which is useful when we can compile filter expression to sql.
And I'm storing tiddlers like this https://github.com/tiddly-gittly/TidGi-Mobile/blob/a1154caddb498e7244b599826bc001b860d2b560/src/services/SQLiteService/orm/index.ts#L4
Which is fast for the initial loading of a wiki, and it was my primary goal to achieve on the mobile platform.
I'm thinking which one is better. Maybe we can use two tables, one for fast read, one for fast filter execution? And sync data between two tables?
Beta Was this translation helpful? Give feedback.
All reactions