jacopofar / grammar-quiz

Online cloze deletion tool focused on grammar
MIT License
7 stars 0 forks source link

Use a separate table to ingest data, then merge #45

Closed jacopofar closed 4 years ago

jacopofar commented 4 years ago

The current ingestion process populates the card table from scratch. This has two problems:

it will get worse when adding lemmatization, which will increase the size and time.

So, a solution is to first create a staging table with the data and only after that merge it with the current one using SQL transactions.

jacopofar commented 4 years ago

Done, together with the new partitioning it makes it a bit faster but most importantly allows incremental update while the app is running