Replies: 8 comments 23 replies
-
@hoelzro please quote the comments here, so we can read them or there should be only 1 link |
Beta Was this translation helpful? Give feedback.
-
Ok - I was thinking of doing that earlier, but I only had a few minutes before I had to get my daughter to school and I wanted to get something up here 😞 I'll take care of it later! |
Beta Was this translation helpful? Give feedback.
-
I took some time to try MWS against my own wiki - I made some modifications to load my wiki's tiddlers instead of the docs/dev-docs and got it to populate a SQLite database. I ran these statements to create some tables to put field names into their own table: create table field_names (id integer not null primary key, field_name text not null unique);
create table normalized_fields (tiddler_id integer, field_id integer not null, field_value text not null, unique(tiddler_id, field_id));
insert into field_names (field_name) select distinct field_name from fields;
insert into normalized_fields select f.tiddler_id, fn.id, f.field_value from fields as f inner join field_names as fn on fn.field_name = f.field_name; Then I used the select name, sum(pgsize) from dbstat where name in ('fields', 'field_names', 'normalized_fields') group by name
So the benefit, size-wise, at least, of normalizing the field names is pretty minimal - at least for my own wiki! |
Beta Was this translation helpful? Give feedback.
-
Another thing I noticed while working on the normalization idea - we might want MWS to leverage transactions more. Not only do they help from a consistency standpoint, but they can really speed up writes against the filesystem if those writes are batched. For example, when trying to load the docs/dev-docs tiddlers into SQLite, it takes 6-7 minutes to do so - but when I modify |
Beta Was this translation helpful? Give feedback.
-
In the sync thread Jeremy mentioned:
Any thoughts around whether we would track history across renaming of tiddlers? It seems tricky considering how TiddlyWiki currently treats renames as the deletion of the old tiddler and the creation of a tiddler with the new title. |
Beta Was this translation helpful? Give feedback.
-
@Jermolene I saw your recent work using the node-sqlite3-wasm module, and the timings you posted there which showed a 100x slowdown using |
Beta Was this translation helpful? Give feedback.
-
@Jermolene I started on some store-level tests here - I don't know how much time I'll have for them over the next week or so, but I wanted to at least get something started. |
Beta Was this translation helpful? Give feedback.
-
I just read this post from the folks over at Notion: How we sped up Notion in the browser with WASM SQLite I found it interesting, considering the MWS work! |
Beta Was this translation helpful? Give feedback.
-
Per @Jermolene's suggestion, let's start a discussion around the usage of SQL (in particular, SQLite) within multi wiki server.
Existing comments:
#7915 (comment)
#7915 (comment)
#7915 (comment)
#7915 (comment)
#7915 (comment)
#7915 (comment)
#7915 (comment)
Beta Was this translation helpful? Give feedback.
All reactions