couchdb - How to arrange my Data in NoSQL (Invoices) -
i'm walking first steps nosql databases, far knowledge basic. try set database small invoice system.
in sql i'd create 4 tables: products, customers , invoices, , match table invoice , produts.
but how nosql? build relations or build 1 document each invoice.
you should keep in mind nosql design not based on data structure on data function. should first ask kind of queries need on data , take there.
first figure out how far want go denormalization , aggregation. instance: sets of data require query or update @ once? , try keep single document if means duplicating data other entities (i.e. storing customer data along invoice data).
so ask why want use non relational databases, , how use data. decide modeling techniques apply , how far. highly scalable blog has great article nosql data modeling if care give read.
Comments
Post a Comment