There may be various solutions ;) A minimized code example that
demonstrates your procedure could be helpful here.
On Tue, Feb 16, 2021 at 3:21 PM Tim Thompson wrote:
>
> Yes, the insert operations also involve lookups against a couple of full-text
> indexes (using ft:search()). The entries in
Hi Tim,
> Is it possible to put updating expressions in a library module function (with
> the name of the database hard coded) and then call from the function within
> jobs:eval() in a main module?
Yes, it should be. Here’s a little example (create database 'x' first):
lib.xqm:
module namesp
Thanks. I'm still trying to get this to work. Is it possible to put
updating expressions in a library module function (with the name of the
database hard coded) and then call from the function within jobs:eval() in
a main module? When I do this, the jobs don't seem to run in parallel. But
if I put
Hi Tim,
Updates can be run in parallel if the name of the database is directly
specified in the query [1]:
jobs:eval('delete node db:open("db1")//abc'),
jobs:eval('delete node db:open("db2")//def')
In a future version of BaseX, we might split up our compilation phase
into multiple ones. Afte
Thank you, Christian, for the detailed explanation!
One more question, if I may. Is it possible to run updating jobs on
different databases in parallel? Or can database update operations only be
run sequentially, one db at a time? I have a query that calls a function to
perform a series of operati
Hi Tim,
file:write uses the default W3 serialization method "XML". This means
that the standard entities (&, <, etc.) will be encoded. This can be
circumvented by using the 'text' output method…
file:write(..., ..., map { 'method': 'text' })
…or file:write-text.
In BaseX, we introduced our ow
Ah, never mind. When I run the *file:write-text()* without* jobs:eval()*, I
get an error, "Cannot convert xs:dateTime to xs:string." Is it possible to
return the error from a job call?
TIm
--
Tim A. Thompson
Metadata Librarian
Yale University Library
On Sat, Feb 6, 2021 at 10:00 AM Tim Thompson
Hello,
I was experimenting with the jobs module and wondering why there's a
difference between *file:write() *and *file:write-text()* in the query
below:
for $i in 1 to 5
return (
jobs:eval('
declare variable $iter external;
file:write-text("~/Desktop/job"|| $iter ||".txt", (prof:sleep(
Hi, Christian!Thank you.27.02.2020, 18:35, "Christian Grün" :Hi Vladimir, Is it possible to add a job under specified user or only admin?Only admin users can call jobs:eval(), and the resulting job will haveadmin permissions as well. I solved it by the function "client:connect" Is it right?Yes; thi
Hi Vladimir,
> Is it possible to add a job under specified user or only admin?
Only admin users can call jobs:eval(), and the resulting job will have
admin permissions as well.
> I solved it by the function "client:connect"
> Is it right?
Yes; this function allows you to connect to a BaseX serv
I solved it by the function "client:connect"Is it right? 27.02.2020, 13:26, "Ветошкин Владимир" :Hi! Is it possible to add a job under specified user or only admin?I have a base with accessing only for userA. And I want to add a job with queries to that base under userA. -- С уважением,Ветошкин Вл
Hi! Is it possible to add a job under specified user or only admin?I have a base with accessing only for userA. And I want to add a job with queries to that base under userA. -- С уважением,Ветошкин Владимир Владимирович
Am 18.10.2017 um 17:19 schrieb Christian Grün:
Hi Omar,
Beforehand: You mentioned that your RESTXQ always cause global locks.
Do you have an example for that (see my last mail)?
Sorry, no. While running that large update yesterday I thought I saw
someone running a RESTXQ call without xquery:e
Hi Omar,
Beforehand: You mentioned that your RESTXQ always cause global locks.
Do you have an example for that (see my last mail)?
> * Updating jobs don't seem to run in parallel even if they don't work with
> and lock the same database. Or do they start much later than I expected?
It should be
Hi list!
I was experimenting with the jobs module for the last weeks to speed up
updates and to make them fit into less than 6 GB of memory. It does not
work the way I expected.
* Updating jobs don't seem to run in parallel even if they don't work
with and lock the same database. Or do they
15 matches
Mail list logo