OrientDb DROP PROPERTY does not delete property values ​​in records

According to OrientDB docs it says:

The Drop Property command removes a property from the schema. This does not delete property values ​​in the records, but simply changes the schema information. Records will still have property values, if any.

This creates some problems in my code, causing the application null pointer exception to be excluded from the reset properties. Is there a way to remove a property and remove values ​​from existing records.

Thanks in advance.

+6
source share
1 answer

Found solution here

To remove a property from existing records, run the following query:

UPDATE <class> REMOVE <PROPERTY> WHERE <CONDITION> 
+16
source

Source: https://habr.com/ru/post/984911/


All Articles