orientjs icon indicating copy to clipboard operation
orientjs copied to clipboard

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

Open rohitpatil7892 opened this issue 6 years ago • 2 comments

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 avatar Nov 21 '19 09:11 rohitpatil7892

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 avatar Nov 21 '19 14:11 wolf4ood

@wolf4ood Do we have tentative ETA of next release?

VikramShityalkar avatar Nov 20 '20 06:11 VikramShityalkar