Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Avoid rebuilding indexes if nothing has changed #1390

Mark-A-W opened this Issue Mar 11, 2013 · 5 comments


None yet
4 participants

This issue has been raised by request in response to this thread:


Currently (OrientDB Server v1.3.0 (build 16)), if the DB server job is ended by the OS (e.g. if terminating a Java program running in the Eclipse IDE with embedded OrientDB), the indexes are rebuilt the next time the server is started even though no records have been created, updated or deleted.

Luca says: "What we need is to reset the softly close flag only at first change."

That would be a good and helpful step. Maybe the next step would be to record when an individual index was dirty and only rebuild such indexes at server start. This should reduce the rebuilds to almost nil, only rebuilding those indexes where the update was in progress when the server was terminated.

@lvca lvca added the enhancement label Oct 3, 2014

@lvca lvca added this to the 2.1 milestone Oct 3, 2014

@laa laa was assigned by lvca Oct 3, 2014


lvca commented Feb 1, 2015

Implemented with WAL CHECKPOINT in 2.0

@lvca lvca closed this Feb 1, 2015

@lvca lvca modified the milestone: 2.0 Final, 2.1 Feb 1, 2015

Sir, Is this feature implemented in the community edition please?


lvca commented Jun 16, 2015

Absolutely yes.

Thanks a lot, Sir. Would you shed some light how to code it please? I am reading your javadoc: http://orientdb.com/javadoc/latest/index.html?com/tinkerpop/blueprints/impls/orient/OrientGraphFactory.html
and also asking people on the google group: https://groups.google.com/forum/#!topic/orient-database/d_axtYG4fGs

I wish to open the database in read-only mode so two or more applications can query the same database (in plocal mode not remote mode). Is this possible please? Do I have to use remote mode please?

Thanks a lot in advance


lvca commented Jun 16, 2015

Sorry this is not the right place. I'll comment the topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment