Closed jacopofar closed 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.
Done, together with the new partitioning it makes it a bit faster but most importantly allows incremental update while the app is running
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.