ios - FMDatabase connection -


i working fmdatabase in ios app opening new connection on every query need do.

for example in categorydao getcategoriesforarticle method open new connection. in articledao getarticle open new connection.

i thinking on open 1 connection in appdelegate , use connection on queries. good? or better open new connection when need , close connection?

yes, open 1 connection , consider using fmdatabasequeue.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -