alex-phillips/node-clouddrive

Use transactions during initial sync for better speed

sergiogiogio opened this issue · 1 comments

Hello - I have 46k+ files in my cloud drive and the initial sync did not complete within 15min (I killed it). It is heavily writing to the disk, probably executing single self-committing insert statements. Please consider committing only every 50 or so statements in order to speed up sync.

@sergiogiogio Thanks for the feedback! I've added this into the master branch (will probably tag a new release soon). Thanks for the input! You can find the commit here: 7aad77c

FYI: adding transactions decreased the total sync time of my personal account more than 75%!