2 ms·
In case you ever need to generate your own data, I found it MUCH better to generate the data according to a clean, debuggable grammar, vs using a "test" databas
by mahmud 18y ago
In case you ever need to generate your own data, I found it MUCH better to generate the data according to a clean, debuggable grammar, vs using a "test" database. You can return a spreadsheet with four columns, A, B, C and D for example, where each recordset would have a column-name prefix and to that you append a progressively "increasing" string. One sample recordset might be:
(a-aaaa b-aaaa c-aaaa d-aaaa)
(a-aaab b-aaab c-aaab d-aaab)
(a-aaac b-aaac c-aaac d-aaac)
The size of your data would depend on the "width" N of your variable string suffix. In this case N=4 or a dataset of 26^4 when using only lowercase alphabetical letters a-z.
Predictable data makes debugging trivial. I'm not sure how that helps you with UI. It goes without saying not to return large datasets via ajax ;-)