What causes the database to lock?

#1

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?

0 Likes

#2

Hey @saeho,

What database are you referring to? SQLite?

Cheers,

Adam

0 Likes

#3

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.

0 Likes

closed #4

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

0 Likes