On Mon, Jul 13, 2015 at 3:53 PM, Julian Reschke <[email protected]> wrote: > Simplicity and the complete lack of contract. How would the DS > implementation *know* what needs to be indexed?
Then we should define the contract. What needs to be indexed is an important information and should be made available to DocumentStore explicitly > "might be large" is guesswork, no? The additional columns are all > numbers/flags. For now yes a guesswork. But logically this duplication should not happen! In addition most of such indexes are defined as sparse in Mongo. For RDB I think there would be DB specific approaches for creating sparse index. Currently RDBDocumentStore stores some default value if no value is specified. It might be better to store null there [1] > Each *document*? Did you mean collection? Yes I meant collection there. Chetan Mehrotra [1] http://stackoverflow.com/questions/8764910/sparse-column-vs-indirection
