On 2015-07-13 12:54, Chetan Mehrotra wrote:
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

Absolutely.

"might be large" is guesswork, no? The additional columns are all numbers/flags.

For now yes a guesswork. But logically this duplication should not

There is no duplication.

happen! In addition most of such indexes are defined as sparse in
Mongo. For RDB I think there would be DB specific approaches for

In RDB, by default there's no index at all on these.

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

Best regards, Julian

Reply via email to