flexsearch icon indicating copy to clipboard operation
flexsearch copied to clipboard

import/export with "fastupdate" enabled

Open geakstr opened this issue 4 years ago • 1 comments

Hi! Thanks for the such a great lib and congrats with 0.7 release! In docs I see:

You cannot export the additional table for the "fastupdate" feature. These table exists of references and when stored they fully get serialized and becomes too large. The lib will handle these automatically for you. When importing data, the index automatically disables "fastupdate".

I'm curious why it's not an option if I'm ok to export/import even additional big table? My use case is text editor (electron app), and documents can be updated frequently. Great that performance for updates without "fastupdates" enabled is 5x faster in comparison with 0.6, but it would be really cool to get it 2850x faster :)

geakstr avatar Jul 21 '21 07:07 geakstr

Hi thanks for your nice words, I'm very appreciate it. Actually the only way to use an index which is using the "fastupdate" table under the hood is re-creating the whole index by ".add(...)". I will think about to extend the export by this table in a future update (or other kind of workaround).

ts-thomas avatar Jul 26 '21 10:07 ts-thomas