Skip to content
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

Convert FROM <class> WHERE @rid=<rid> into FROM <rid> #18

Open
dmarcelino opened this issue Dec 9, 2014 · 1 comment
Open

Convert FROM <class> WHERE @rid=<rid> into FROM <rid> #18

dmarcelino opened this issue Dec 9, 2014 · 1 comment

Comments

@dmarcelino
Copy link
Member

In order to improve performance detect queries of pattern:

SELECT FROM <class> WHERE @rid=<rid>
select from user where @rid=#43:0

and convert them into

SELECT FROM <rid>
select from #43:0
select from [#43:0, #43:1]

or the below to be safe

SELECT FROM <rid> WHERE @class=<class> 
select from #43:0 WHERE @class='user'
select from [#43:0, #43:1] WHERE @class='user'

At this point not sure if this is a waterline-orientdb or a waterline-sequel-orientdb issue.

Care must be taken care to prevent a malicious user from retrieving records he doesn't have access to.

@nidaca
Copy link

nidaca commented Sep 2, 2015

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants