question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

XQuery, parallel execution

See original GitHub issue

Using xquery:fork-join, errors can happen. Examples:

  • Static variable depends on itself: $C:VALUES
  • Item expected, sequence found: (element erstellt {…}, …).

Some more work is required to find out which operations are not completely thread-safe.

XQuery (with the next branch):

let $x := <x/>
return xquery:fork-join(
  for $i in 1 to 10000
  return function() { $x/text() }
)

Result:

[XPDY0002] text(): no context value bound.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ChristianGruencommented, Feb 15, 2019

Short version: xquery:fork-join((1 to 1000) ! function() { <x/>[@a] })

1reaction
sofiageocommented, Jan 25, 2019

I have another example reproducible with BaseX 9.1.2 - It needs to be run multiple times until it gives an error. It fails faster with more threads

let $x := <test t="OK"></test>
return xquery:fork-join(
  for $i in 1 to 4
  return function() { $x[lower-case(@t) = "ok"] }
)
Read more comments on GitHub >

github_iconTop Results From Across the Web

A Scalable Parallel XQuery Processor | ASTERIX
VXQuery, an open-source scalable XQuery processor. The sys- tem builds upon two other open-source frameworks: Hyracks, a parallel execution engine, ...
Read more >
EFFICIENT AND PARALLEL EVALUATION OF XQUERY
As XML and XQuery are being used for larger datasets, parallel execution and stream processing are two solutions to reduce storage and/or the...
Read more >
PAXQuery: Efficient Parallel Processing ... - Archive ouverte HAL
This work considers the problem of efficiently parallelizing the execution of complex nested data processing, expressed in XQuery. We.
Read more >
Algebra for Parallel XQuery Processing | SpringerLink
In this paper, algebra PPXA (Pure Parallel XQuery Algebra) is proposed to support parallel processing for XQuery statements. Based on the Algebra, ...
Read more >
A scalable parallel XQuery processor - IEEE Xplore
The system builds upon two other open-source frameworks: Hyracks, a parallel execution engine, and Algebricks, a language agnostic compiler toolbox.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found