A Wrapped / Replay like for teal.fm and rocksky.app (currently on hiatus)
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

build text search indices

Mia 654c93dc ddda7139

+11 -1
+3
src/mbz/init.sql
··· 1 + install fts; 2 + load fts; 3 + 1 4 create schema mbz; 2 5 3 6 -- TODO MAYBE: l_*_* link tables?
+3
src/mbz/init_fts.sql
··· 1 + PRAGMA create_fts_index('mbz.artist_credit', 'id', 'name'); 2 + PRAGMA create_fts_index('mbz.recording', 'id', 'name'); 3 + PRAGMA create_fts_index('mbz.release', 'id', 'name', 'comment');
+5 -1
src/mbz/replica.rs
··· 177 177 )?; 178 178 } 179 179 180 - info!("musicbrainz dump imported successfully!"); 180 + info!("musicbrainz dump imported successfully, building FTS"); 181 + 182 + db.execute_batch(include_str!("init_fts.sql"))?; 183 + 184 + info!("finished building FTS"); 181 185 182 186 Ok(()) 183 187 }