jeudi 19 février 2015

use sqlite or hard code into js

I have two tables. One contains ~10k rows (product names) and the other has ~100k rows. I can either read from sqlite, or hard code the data into js/json file for user to read from the website.


I wonder what is the common approach in this scenario? Since for smaller data, js may even be faster than reading from db.





Aucun commentaire:

Enregistrer un commentaire