What causes the database to lock?

Occasionally while developing, my database “locks” and nothing works, thus causing me to close the simulator and restart.

What are some reasons why my database might be locking?

Hey @saeho,

What database are you referring to? SQLite?

Cheers,

Adam

Yes. SQLite often locks on me.

I’m hoping this only happens in dev environment because I see it between auto-refreshes in constant code saves.

When the app opens one of the first things that happens is the app downloads some latest data and it does a couple of “insert or replace” queries.

I’m not sure if the database locking might happen because of that.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.