Ok, so I have to invent my own triggers until I can catch the index update
on the source DB.

I think I'll just put it on a timer, thanks.



On Sat, Dec 21, 2019 at 12:07 PM Christian Grün <[email protected]>
wrote:

> Your code needs to take care of both the actual update and the index
> update. As indicated in another thread on this list this or last week, the
> integration of triggers (with pre/post commit hooks) may allow you to
> separate these two tasks in a future version of BaseX.
>
>
>
> France Baril <[email protected]> schrieb am Sa., 21. Dez.
> 2019, 11:53:
>
>> I'm good with writing the code, but how do I make it run automatically on
>> content update of the original source DB? What I am missing is where/how to
>> connect that code so it runs on its own.
>>
>> On Sat, Dec 21, 2019 at 11:35 AM Christian Grün <
>> [email protected]> wrote:
>>
>>> 2. I only have the create .xq, If I need to add code to update, I don't
>>>> know where/how to connect it, which brings me back to my question, how do I
>>>> connect my query so it will update my indices. That's where the missing
>>>> link is.
>>>>
>>>
>>> It’s not sufficient to connect your query, as it (as far as I can see)
>>> recreates the full index. Instead you’ll need to write additional code that
>>> updates the relevant parts of your custom index structure.
>>>
>>> Hope this helps
>>> Christian
>>>
>>>
>>>
>>
>> --
>> France Baril
>> Architecte documentaire / Documentation architect
>> [email protected]
>>
>

-- 
France Baril
Architecte documentaire / Documentation architect
[email protected]

Reply via email to