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

How to pass parallel parameter in executes long running select query's parallelly #411

Open
rohitpatil7892 opened this issue Nov 21, 2019 · 2 comments
Assignees

Comments

@rohitpatil7892
Copy link

I want to execute a long-running query for select data
this query holds the database waiting for a response and application is going to wait for the state
I want to execute that query in parallelly so need to pass PARALLEL in select query

OrientJS select function not supported that parameter is any other way to perform this query?
SELECT [ <Projections> ] [ FROM <Target> [ LET <Assignment>* ] ] [ WHERE <Condition>* ] [ GROUP BY <Field>* ] [ ORDER BY <Fields>* [ ASC|DESC ] * ] [ UNWIND <Field>* ] [ SKIP <SkipRecords> ] [ LIMIT <MaxRecords> ] [ FETCHPLAN <FetchPlan> ] [ TIMEOUT <Timeout> [ <STRATEGY> ] [ LOCK default|record ]
[ PARALLEL ] [ NOCACHE ]

How to pass this param like select(target, PARALLEL) .

@rohitpatil7892 rohitpatil7892 changed the title How to pass parallel parameter in executes long running select query How to pass parallel parameter in executes long running select query's parallelly Nov 21, 2019
@wolf4ood
Copy link
Member

Hi @rohitpatil7892

Parallel is not supported yet in the query builder. It should be trivial to add. I will mark this as enhancement for the next releases.

It will be something like this

select().from('OUser').parallel()

Thanks

@wolf4ood wolf4ood self-assigned this Nov 21, 2019
@VikramShityalkar
Copy link

@wolf4ood
Do we have tentative ETA of next release?

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