Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

When using SQLite in Expo for iOS/Android with concurrent promises, should we open a new connection?

$
0
0

Since SQLite does not allow nested transactions. I was wondering does it make sense to open up a new connection for every transaction so I can have concurrent transactions in Expo?

Sounds a bit overkill, but it appears to be the only option I would have at the moment when I want to do multiple read/update operations which are independent of each other.

In addition, if I do that, I am thinking I would be able to make my transactions "DEFERED" rather than "IMMEDIATE".

Am I missing a less drastic option?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>