-
Notifications
You must be signed in to change notification settings - Fork 866
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
Getting heap memory issue for the count query. #10021
Comments
Hi, I tried to reproduce this case without any success, also your explain looks a bit strange to me, OrientDB has multiple steps usually like the |
Hi, I could reproduce this with a unit test and fix it, will be released next hotfix. Regards |
Okay, Thank you |
Hi, The release 3.2.23 is out, will close this, please re-open if you still experience similar problem. Regards |
It's resolved in 3.2.23, Thank you |
OrientDB Version: 3.2.22
Java Version: jdk11
OS: Linux ( Docker image)
Expected behavior
Should return the single record with the count number.
Actual behavior
Return multiple records according to the limit provided. If a limit is not provided then gives heap memory issues.
Steps to reproduce
We have a class named "Objects" with three properties: ID, Name, and Searchable. Indexes have been created for both the "Name" and "Searchable" properties as shown below:
Index for "Name" property:
CREATE INDEX Objects.Name ON Objects (Name) UNIQUE_HASH_INDEX ENGINE HASH_INDEX
Index for "Searchable" property:
CREATE INDEX Objects.Searchable ON Objects (Searchable) NOTUNIQUE_HASH_INDEX ENGINE HASH_INDEX
After that, we created some records in the database.
Running the below query we are getting count results in multiple records as shown in the image.
SELECT count(*) from Objects where Searchable = true
This is explain view of the same query.
If we run the query using orientjs(Without passing the limit) then it give us heap memory issue as shown below.
If we run the query without * or Adding any other property like ID we are getting results as expected as shown below images.
If we delete the index then we are getting results as expected.
In this scenario is there an index creation issue?
Please let me know if any additional information is needed to investigate this issue.
Thank you.
The text was updated successfully, but these errors were encountered: