42 | | 1. it has to be ''simple''; |
43 | | 2. it must be ''flexible'', in order to accommodate different kinds of resources and |
44 | | allow for dynamic evolution, like addition or removal of fields by plugin or via the web admin; |
| 42 | 1. it has to be ''simple'' (//easy to understand, easy to code with, when looking at the raw data in the database one should be able to intuitively understand what it means//) |
| 43 | 2. it must be ''flexible'' ((//accommodate different kinds of resources, allow for dynamic evolution like addition or removal of fields by plugin or via the web admin//) |
84 | | By using the second style, we could also have our "fixed" set of properties, |
85 | | while obviously the first style can't support the second. |
86 | | |
87 | | It remains to be seen whether the second approach is really less efficient than the first, but this doesn't really matter as we anyway have already to pay the |
88 | | price for that flexibility. |
89 | | Note also that by an appropriate use of indexes, we might eventually get |
90 | | ''better'' performance compared to what we have today. |
| 83 | The main argument in favor of a change is that currently (for the `ticket` resources) we //already// implement both styles. The point is that by using //only// the second style (but maybe in a more efficient way), we could also have our "fixed" set of properties, while obviously the opposite is not true, the first style can't provide the flexibility provided by the second style. |
| 84 | |
| 85 | And it remains to be seen whether the second approach is really less efficient than the first, as by an appropriate use of indexes we might eventually get ''better'' performance than what we have today. |