Slowness from reindexing the database when opening database

Description

From https://couchbasecloud.atlassian.net/browse/CBL-2155, it seems like there are some changes to fl_value that requires to reindex the indices in kv_default. This has a potential to slow the opening database operation first time. This can cause all existing apps to be halt for a moment. I'm creating this ticket to see if there is a way to mitigate this issue or not. 

1. Can we measure the impact of this before taking action on the actual devices (e.g. iPhone and Android)?

2. Is there a way to make fl_value falling back to do the old value?

3. Is is possible to reindex in the background instead of hanging?

Attachments

6
  • 18 Oct 2021, 08:09 PM
  • 18 Oct 2021, 06:56 PM
  • 18 Oct 2021, 04:27 PM
  • 18 Oct 2021, 04:27 PM
  • 15 Oct 2021, 10:24 PM
  • 15 Oct 2021, 10:23 PM

Activity

Show:

CB robot January 5, 2022 at 4:30 AM

Build couchbase-lite-net-3.1.0-21 contains couchbase-lite-core commit ea82fb7 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-2374#icft=CBL-2374: Upgrade docs to 3.0 schema lazily (#1317)

CB robot December 16, 2021 at 11:55 PM

Build couchbase-lite-ios-3.1.0-77 contains couchbase-lite-core commit ea82fb7 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-2374#icft=CBL-2374: Upgrade docs to 3.0 schema lazily (#1317)

CB robot December 15, 2021 at 2:19 AM

Build couchbase-lite-java-3.1.0-77 contains couchbase-lite-core commit ea82fb7 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-2374#icft=CBL-2374: Upgrade docs to 3.0 schema lazily (#1317)

CB robot December 15, 2021 at 2:19 AM

Build couchbase-lite-android-3.1.0-77 contains couchbase-lite-core commit ea82fb7 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-2374#icft=CBL-2374: Upgrade docs to 3.0 schema lazily (#1317)

CB robot December 11, 2021 at 12:06 AM

Build couchbase-lite-c-3.1.0-60 contains couchbase-lite-core commit ea82fb7 with commit message:
https://couchbasecloud.atlassian.net/browse/CBL-2374#icft=CBL-2374: Upgrade docs to 3.0 schema lazily (#1317)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Sprint

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created September 20, 2021 at 5:48 PM
Updated August 31, 2024 at 10:56 AM
Resolved December 10, 2021 at 1:19 AM
Instabug