Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-2374

Slowness from reindexing the database when opening database

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.1.0
    • 3.0
    • LiteCore
    • Security Level: Public
    • None
    • Jianmin 57, Jianmin 58, Jianmin 59, Jianmin 60, Jianmin 61
    • 3

    Description

      From https://issues.couchbase.com/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

        1. largeset_idx_rev2.cblite2.zip
          52.36 MB
        2. names_300000_idx.cblite2.zip
          50.03 MB
        3. names_300000_rev2.cblite2.zip
          49.15 MB
        4. stores_idx.cblite2.tar
          61.25 MB
        5. stores.cblite2.tar
          57.79 MB
        6. wikipedia_10k_rev2.cblite2.zip
          126.70 MB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jianmin.zhao Jianmin Zhao
              pasin Pasin Suriyentrakorn
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty