Discussion:
Indexing strategy in 2.0
Martin Rybak
2018-05-02 21:17:56 UTC
Permalink
In 2.0, can you tell me if indexes are updated when documents are queried
(lazily) or when they are updated (eagerly)? The 1.x approach was to do it
at query time which, unless you wanted stale data, resulted in a poor user
experience.
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/62cb0490-66cc-48f3-8ed6-dfc13eeadc1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Priya Rajagopal
2018-05-03 13:55:44 UTC
Permalink
Pretty sure it's done eagerly in 2.0. Jens?
Post by Martin Rybak
In 2.0, can you tell me if indexes are updated when documents are queried
(lazily) or when they are updated (eagerly)? The 1.x approach was to do it
at query time which, unless you wanted stale data, resulted in a poor user
experience.
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/69bd38da-0b63-49a7-8d5a-5098dad792ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jens Alfke
2018-05-03 23:42:00 UTC
Permalink
In 2.0, can you tell me if indexes are updated when documents are queried (lazily) or when they are updated (eagerly)?
It’s eager in 2.0.
The 1.x approach was to do it at query time which, unless you wanted stale data, resulted in a poor user experience.
Yes, but it was nice that you could have a lot of indexes and not pay the price for ones you weren’t using. In 2.0, be aware that creating a lot of indexes will slow down all document updates. (If you’re doing a big batch update, it can sometimes actually be cheaper to drop indexes and then recreate them afterwards.)

—Jens

Jens Alfke — Mobile Architect — Couchbase, Inc.
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/253AAF1D-A98A-48F4-934F-406542315580%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
Martin Rybak
2018-05-04 11:03:30 UTC
Permalink
Thanks for clarifying! Good to know.
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchbase+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/c99c9eb7-e52e-4fde-bc60-94c248ea35b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...