Vasily Liaskovsky
Vasily Liaskovsky

Reputation: 2538

IndexedDB mixed transaction mode

My service is reponsible for creating and storing into IndexedDB a complex object involving several object stores. Currently I'm opening the transaction in readwrite mode:

db.transaction(['tournament', 'schedule', 'player'], 'readwrite')

However, the schedule object store is never updated in this transaction, only queried, and I'd rather let the engine know this fact. So, the question is: is there a way to request several storages with different modes, independently?

Upvotes: 0

Views: 36

Answers (1)

Joshua Bell
Joshua Bell

Reputation: 8365

No, this is not supported in the API.

Upvotes: 1

Related Questions