-
Notifications
You must be signed in to change notification settings - Fork 871
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
Absent values in automatic composite SB-Tree index #5991
Comments
Cause of big is following - default record value is assigned after index hook is called but not before so index miss this record. Assigned to @tglman . |
Seems that the problem was not in index type. The similar problem exists in Hash Index type too. Values appear only after index recreation. |
hi, @Laa the default value is set at the moment when you set a class on the ODocument, so far before the hook invoke. bye |
@tglman I have couple of questions:
|
i noticed that was done a fix for make the init of default value at earlier, back-ported now 475c257 closing |
I'm working with OrientDB Enterprise Server v2.1.13 and have faced some problems I can't find explanation and solution for yet.
It seems that automatic composite SB-Tree index works improperly and doesn't index new values (or I misunderstand something). A have the following edge classes:
Suppose we have some vertices - with RIDs #12:0 and #30:0.
Then we do inserts:
CREATE EDGE LINK FROM #12:0 TO #30:0 SET action = 'a';
We can SELECT and see that it was inserted correctly into the database:
Now let's create SB-Tree NOTUNIQUE index (the default):
CREATE INDEX LINK.action_status ON LINK (action, status) NOTUNIQUE
Now we CREATE a new record:
Now we try to SELECT the 'a' and 'b' values:
EXPLAIN:
But -- if you SELECT it using IN() -- it's there (seems that the IN() operator doesn't use indexes anyway - another issue I've faced):
EXPLAIN:
Any suggestions on this?
Thanks in advance.
The text was updated successfully, but these errors were encountered: