here are the exact repro steps, I created new database and validated the this behaviour reproduce.
I'm creating the db schema using the following script: CREATE CLASS Contact extends V CREATE PROPERTY Contact.id STRING CREATE INDEX Contactid on Contact(id) UNIQUE_HASH_INDEX ALTER PROPERTY Contact.id NOTNULL true ALTER PROPERTY Contact.id READONLY true ALTER PROPERTY Contact.id MANDATORY true then I insert new Contact vertex using the following command: INSERT INTO Contact SET ID = '555' The query SELECT * FROM Contact WHERE ID = '555' returns empty After I rebuild the index the query return the results. Any ideas? Thanks! On Monday, August 10, 2015 at 12:19:51 PM UTC+3, Ran Mizrachi wrote: > > Hi there, > > I see that my index is not being updated after insert operations. > The index is a unique hash index and I'm creating it using the following > command: > > CREATE INDEX contactId on Contact(id) UNIQUE_HASH_INDEX > > I see clearly that after I rebuild the index new results returns in the > queries. > > > Any ideas? > > Thanks! > > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to orient-database+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.