AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
7.01k stars 653 forks source link

Schema Creation for Alasql takes time #409

Open seal713 opened 9 years ago

seal713 commented 9 years ago

Hi,

I am using Alasql to create bunch of tables, totally around 70. And I found it takes around 10 seconds to complete all of them on iPad Safari. Can you please kindly let us know whether this is expected or is there any way to improve the performance here?

Secondly, do we have any method to persist the schema aligned with the data from Alasql to IndexDB or WebSQL, so that we can create only once and reuse later?

Warm regards, Seal

Drashij commented 1 month ago

thanks @mathiasrw for responding, i forgot to mention that tables are present but their schema is getting lost so when i am inserting after a browser refresh, the data is inserted as it is, not in a correct format, and also i am already following the above code of creating table conditionally.