php - Storing report results, MySql or MongoDB? -
i have bunch of reports generating on weekly , monthly basis. started create mysql database realized need either have tables tons of columns, , possibly adding them later on. need update code every time add new column.
i use eav model, or kind of key/value model, slow, right?
so remember article mongodb, being 'document' database. reports documents, ideal solution problem? seems easy?
if reports tend have different data structures once in while mongodb way go. store reports on filesystem in xml or json formats. can serialize reports json , store them in mysql database (this way can handle different data structures without need alter table). there many ways achieve you're describing. keep in mind searchability of reports may vary based on choice make.
Comments
Post a Comment