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
Post a Comment