I am creating a batch application for Chrome. Looking into my database settings, I am curious if I understand the correct way to use them.
With SQLite, I would create a books
table with the following rows _id
, title
, category
, date
, price
, qty_sold
.
With localStorage, I would create a _id
table with a key / pair, e.g. 1
, x499faj4
. Then I will create a title
table with the key / pair x499faj4
, book title
. Table category
, with x499faj4
, fiction
.
I am not sure if that makes sense. localStorage seems easier to implement, but how would I sort these things later to populate the list by category, price, or quantity sold, for example? Does localStorage make sense in this situation, and am I using it correctly? Any further suggestions? thanks
source share