mirror of
https://github.com/mirego/accent.git
synced 2024-08-17 06:50:31 +03:00
This introduce a new way of doing "migration" of data based on the operation table. Before, we simply executed the SQL query as the migration were run. Like for a "new" operation, we did an insert of a "transactions" row and an update to the "operations" table _for each entry in the synced file._ For a file containing 1000 keys, we did a total of 2000 SQL queries. After this commit, we only do 2 SQL queries (well 4 since we batch the SQL params by 500). By aggregating operation like {:update_all, operation.id, %{synced: true}}, we are able to batch the operations efficiently. This results in a much faster sync/add translations/correct/uncorrect operations. |
||
---|---|---|
.. | ||
pretty_float.ex | ||
secure_random.ex |