I'm new to using IndexedDB. Currently I am writing a small vocabulary learning app and I want it to remember the progress offline.
IndexedDB emphasises that everything gets done in a separate thread. That was already a steep learning curve to deal with.
Now I am wondering: How much to I have to look out for recources when working with the IndexedDB connection? Since the DB is on the local box in the same browser I wonder:
Is there a connection limit? Is there a connection timeout? Should I bundle Queries or can I do lots of small interactions with IndexedDB?
To clarify the last question: If I have a Quiz with 10 Questions. Can I just communicate with the DB after every single answer (possibly just using a new connection every time) or am I supposed to use this more in way where I grab all the data I will need from the DB and then deal with it in my script?
Maybe IndexedDB is a bit overkill for what I'm doing, but I just want to learn about it.