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

beginQuery, endQuery - How can I recognize the relation? #127

Closed
StarpTech opened this issue Dec 25, 2015 · 1 comment
Closed

beginQuery, endQuery - How can I recognize the relation? #127

StarpTech opened this issue Dec 25, 2015 · 1 comment
Assignees

Comments

@StarpTech
Copy link

The commands are asynchronous. It is not possible to draw conclusions on the begin Query. I want to analyze my queries but in a environment with high traffic it is confusing. Thanks.

beginQuery:

{ query: '<query>',
  mode: 's',
  fetchPlan: '',
  limit: -1,
  token: undefined,
  language: undefined,
  class: 'com.orientechnologies.orient.core.sql.OCommandSQL' }

endQuery schema:

{ err: undefined,
  result:
   { status: { code: 0, sessionId: 45 },
     results: [ [Object], payloadStatus: 0 ] },
  perf: { query: 242 } }

I recommend:

  1. Hash query + additonal parameter with the simple and fast FNVa Hash-Algorithm
  2. Provide the id in both events.

or pass the params also to the endQuery event.

@wolf4ood
Copy link
Member

wolf4ood commented Sep 7, 2016

Hi @StarpTech

Implemented. See here

#200

@wolf4ood wolf4ood closed this as completed Sep 7, 2016
@wolf4ood wolf4ood added this to the 2.2.x (next hotfix) milestone Sep 7, 2016
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

3 participants