Reindex Database Operation

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Reindex Database Operation

bruno.buzzi
Erik/Alex,

Does "Reindex Database" should be done by calling a REST service ?

Right now (2017.1) i think is done "directly" avoiding the Persistence
Layer.

In order to give room to other implementations this operation should call a
Persistence Layer service.

What do you think ?

My persistence layer support indexing at object (collection) level but i can
not call it from Orbeon Web interface. (note: we use GemStone/S index
support for this)

regards,
bruno

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

Alessandro  Vernet
Administrator
Hi Bruno,

It is done by a service: in `fr/page-flow.xml`, you'll see that
`/fr/service/([^/]+)/reindex` is mapped to `reindex.xpl`, which in turn just
runs the `fr:relational-persistence-reindex` processor. And in the Form
Runner home page, from which you would typically trigger the reindexing,
calls that service (see `fr/home/home.xhtml`). Or were you looking for
something else?

https://doc.orbeon.com/form-runner/feature/home-page.html#reindexing

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

bruno.buzzi
Alex,

I trap all Orbeon calls to my Persistence Layer at runtime time (to do the
development).

But if i click "Reindex Database" i do not see any request coming to the
Persistence Layer.

So:
1) I'm doing something wrong
2) or this call is handle in a different way by Orbeon.

For 1) i trap all others calls so i do not see why this is different.

For 2) i do not know ...

regards,
bruno


--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

Alessandro  Vernet
Administrator
Hi Bruno,

Oops… it's our fault: not all implementations of the persistence API support
all features, so optional features are disabled by default, and you can
enable them for a given implementation with a property.

So I think we should have properties of the form
`oxf.fr.persistence.oracle.reindex` set to `true` if the `oracle` provider
support indexing, and `false` otherwise. But instead, of using a property
our code in `FormRunnerPersistenceProxy.proxyReindex()` relies on a list of
providers hardcoded in `Index.ProvidersWithIndexSupport`. I've created an
issue for this, and will try to implement this soon.

https://github.com/orbeon/orbeon-forms/issues/3486

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

bruno.buzzi
Alex,

Excellent, thank you very much.

When this feature is available i will add it to GemStone/S Persistence
Layer.

regards,
bruno

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

Alessandro  Vernet
Administrator
This one is now fixed:

Starting with the upcoming 2018.1, you'll be able to use the
`oxf.fr.persistence.PROVIDER.reindex` property to instruct Orbeon Forms that
your provider supports reindexing. I've also backported this to our
`2017.2-pe` branch, so this will be included in the upcoming Orbeon Forms PE
2017.2.1.

Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Reindex Database Operation

bruno.buzzi
Alex,

Excellent !!! Thanks very much.

GemStone/S Persitence Layer for Orbeon will support reindex from Form Runner
Homer :)

regards,
bruno

--
Sent from: http://discuss.orbeon.com/

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].