Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid rebuilding indexes if nothing has changed #1390

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

Avoid rebuilding indexes if nothing has changed #1390

Mark-A-W opened this issue Mar 11, 2013 · 5 comments
Assignees
Milestone

Comments

@Mark-A-W
Copy link

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

https://groups.google.com/forum/#!topic/orient-database/d_axtYG4fGs

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 this to the 2.1 milestone Oct 3, 2014
@lvca lvca assigned laa Oct 3, 2014
@lvca
Copy link
Member

lvca commented Feb 1, 2015

Implemented with WAL CHECKPOINT in 2.0

@lvca lvca closed this as completed Feb 1, 2015
@lvca lvca modified the milestones: 2.0 Final, 2.1 Feb 1, 2015
@jwang628
Copy link

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

@lvca
Copy link
Member

lvca commented Jun 16, 2015

Absolutely yes.

@jwang628
Copy link

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
Copy link
Member

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
Development

No branches or pull requests

4 participants