Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2316

Add flag/setting/switch to reindex nodes synchronously when adding new indexes at runtime

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Major Major
    • 4.4.0.Final
    • 4.0.0.Beta2
    • Query
    • None

      When I create a new Index on a non empty repository (for instance one with 10k nodes), the IndexManager has to reindex all nodes.

      Currently it seems to do that asynchronously even if the new index is defined to be synchronously.

      This reindexing seems to be an endless process if during that time queries are made or new nodes are saved. All operations are ultra slow. Lets for instance say 100 operation take 30 minutes.

      But if let the indexmanager do its reindex job (simply add a Thread.sleep(60000)) after the index is defined then the whole process takes about 30 seconds, which would be quite ok for 10k nodes. After that everything runs fine (fast) again.

      What I would like though is that reindexing simply blocks (with synchronous indexes).
      What would be even better: If I could tell the IndexManger that there is nothing to reindex, when defining an index.

      Because that's exactly my use-case: I dynamically define Indexes prior to adding nodes that would be touched by that index. But I do it on a repo that already contains a lot of (other) nodes.

            Unassigned Unassigned
            bes82 Bjoern Schmidt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: