niryariv / opentaba-server

BSD 3-Clause "New" or "Revised" License
4 stars 13 forks source link

what's the difference between fab refresh_db and renew_db? #94

Closed niryariv closed 9 years ago

niryariv commented 9 years ago

are they the same?

screen shot 2014-12-30 at 1 08 36 pm

florpor commented 9 years ago

create_db (= renew_db) drops all the current collections and their data, and starts anew with the list of gushim. update_db (= refresh_db) goes over the data in the db and the list of gushim, sees if there are any new ones in the list and adds them to the db without removing data, in case we grab a better gushim list from somewhere.