Giter Club home page Giter Club logo

Comments (4)

tglman avatar tglman commented on June 15, 2024 1

Hi,

Checking this I noticed that the underlying query for checking and migrating data, that look like more or less select from Class where field.type() <> "TYPE" in case the field had a value link it would load the linked record for do the check of link.type() <> "LINK" this is not needed so I did a couple of optimizations on the query engine (1562d7a , 0825ad6) to avoid linked record to load when not needed, this will improve the performance also of other queries not only of this use cases.

This change will be released in 3.2.24 and should bring the performance of this operations to the same level of 3.2.14

Regards

from orientdb.

tglman avatar tglman commented on June 15, 2024

Hi,

Because OrientDB has support for schema-less properties, when a property is created we need to check if all the records present have a compatible data with the specific property, and run a migration of all the records attaching the new property, this take more time the first time it runs because of the data conversion, and less time the second run because the data is already converted.

There have been changes between 3.2.14 and 3.2.23 to this logic in the specific the old query engine has been swapped with the new query engine, I will double check the performance for this change.

Anyway the property creation is a data migration in OrientDB so if you can consider to define property ahead of time, if you can't, be aware that some time may be need for the data migration, also be aware that the data migration happen for all the classes in the hierarchy.

Bye

from orientdb.

tglman avatar tglman commented on June 15, 2024

Hi,

3.2.24 has been released, closing

from orientdb.

Aniket-Lonare avatar Aniket-Lonare commented on June 15, 2024

Hi @tglman,
I tried OrientDB version 3.2.24, and we experienced a performance improvement, but when using the same database and scenario mentioned above, it still took some more time to create a property compared to 3.2.14.
I captured the average time for creating a property.

  • On 3.2.14, it took 14.18 seconds.
  • On 3.2.24, it took 23.98 seconds.

Was this the expected time?
Thanks

from orientdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.