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

No-op mutations seems to trigger indexing updates

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.2.0.Final
    • 3.1.3.Final
    • JCR

      This is probably an optimization but I have noticed that writing properties, even if they are unchanged, triggers indexing on the nodes. A simple routine that I added to our system:

          if (!node.hasProperty(propertyName) || !node.getProperty(propertyName).getString().
              equals(value)) {
            node.setProperty(propertyName, value);
          }
      

      improved the throughput of the system significantly. Granted, we are writing the same data over and over again but it seems like modeshape should ignore these no-op mutations. I am also not sure if indexing is incremental within a node (that is, the less properties changed, the less hibernate search needs to do).

              rhauch Randall Hauch (Inactive)
              clementp_jira Clement Pang (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: