ios - Is it possible to delete data from all tables within Sqlite Database simultaneously -


actually, need delete , insert data in tables when going launch app. so, please tell me best solution

yes @dai explanation correct.

if going delete table rows 1 one each table memory consuming too.

it takes bit of time remove table's rows. need query separately each table , need check constraint not conflict other table.

suppose, table reference table b must have remove table b records before going remove table records.

there many things needs check before going removing each tables records.

as @dai said if dropping table no issue current implementation.

i suggest 1 step ahead of this. why don't remove database copy bundle.

as per knowledge creating database , place in application bundle. if previous state of database not required remove database , copy new application bundle.

this fast perform on application launch.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -