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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -