I'm new to BaseX and XQuery, so I apologize if there's some glaring thing
I've missed.
What I have are three updating functions that I'm wanting to have executed
sequentially, successfully, to BaseX.
When I simply place them in my RestXQ function, delimited by commas, they
all execute, but since at times certain ones take longer than others, and
since their results can overwrite/negate the results of each other, I can't
manage to get them to consistently execute in the same order.
It seems to me that since it seemingly is running in parallel that whatever
happens to end last determines what my final state is.
I imagine there's got to be some blatantly obvious way to do this, but I'm
just not finding it, I went through the BaseX manual a second time and have
searched every possible combination of things I can think of to try and
figure out a way around this.
One function does a mass delete of all dbs with a given prefix, another
repopulates from a sql query, and a third updates the repopulated dbs based
on yet another sql query. That's the order I want it to execute in, I'm
just about at my wits end trying to figure out how to do this. I was even
getting into trying to pull off a hackish attempt at making jobs which I'd
schedule based on a rough guess of the longest expected execution times for
the functions. But even that wasn't working.
Any help will be greatly appreciated as insuring the order of execution is
rather vital for the overall project I'm trying to do, so I need to not
only find a solution for the present use case, but I need to understand how
to insure such for any future composite functions.
Thanks,
--Nicolai