-
Notifications
You must be signed in to change notification settings - Fork 873
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
linkeset does not save correct order of records #6669
Comments
I had the same issue. The statement by orientdb is that the order is not guaranteed. |
it is not good... |
@Ivanov-Yuriy exactly. |
Why? I am not saying you are wrong, but a bit of good explanation about the reasoning might help the ODB team understand your problem with the different ordering of the links. Scott |
Correct me: A set does not guarantee the order by definition. Its no array data structure. |
@Ivanov-Yuriy Link Set does not guarantee order. See here |
Ok. |
OrientDB Version, operating system, or hardware.
Operating System
Expected behavior and actual behavior
order of records must be the same as I was writing in the database
Steps to reproduce the problem
orientdb {db=test}> create class test extends V
Class created successfully. Total classes in database now: 12.
orientdb {db=test}> create property test.ts linkset
Property created successfully with id=1.
orientdb {db=test}> insert into test set ts= [#5:0,#5:3,#5:1]
Inserted record 'test#21:0{ts:[3]} v1' in 0,002000 sec(s).
orientdb {db=test}> select from #21:0
+----+-----+------+----------------+
|# |@Rid |@Class|ts |
+----+-----+------+----------------+
|0 |#21:0|test |[#5:3,#5:1,#5:0]|
+----+-----+------+----------------+
1 item(s) found. Query executed in 0.002 sec(s).
The text was updated successfully, but these errors were encountered: