JohnnyRS / PandaCrazy-Max

PandaCrazy Chrome Extension for Amazon Mturk
21 stars 8 forks source link

No way of saving Panda's #2

Closed JohnnyRS closed 4 years ago

JohnnyRS commented 4 years ago

Can't save panda's that are added.

JohnnyRS commented 4 years ago

Will be added once I get all the features from the original over.

JohnnyRS commented 4 years ago

Database class using indexeddb has been added. Panda's will be saved with this in the future. Hoping to use this instead of keeping everything in memory.

JohnnyRS commented 4 years ago

First test of adding panda's to the indexeddb was successful. Now to test using the database for grabbing data and see how fast it is so I can figure out a good way of lowering memory use.

JohnnyRS commented 4 years ago

Test of adding panda's from indexeddb was successful which means it can save and load panda's now. The speed test for loading data from database seemed fast enough so most panda information will be in database instead of memory saving lot of space compared to the original pandacrazy.

JohnnyRS commented 4 years ago

Decided to put all panda information in the database and loaded into memory when collecting or editing. So the only stuff left in memory are unique keys to load up data from database and info displayed in the UI cards. Hoping this will save a lot of memory.

JohnnyRS commented 4 years ago

Panda's are being saved correctly. Data is loaded only when needed. Will keep watching memory usage and if it slows down program speed too much.