Sequence of operations in a .bxs file?

Thursday, 29 July 2021 · 2 messages · last reply 30 Jul 2021
CG
Christian Grünin reply to Jonathan Robie, 30 Jul 2021, 00:5329 Jul 2021 23:24 #
The execution is imperative (from top to bottom). The attribute index is enabled by default, so you can drop CREATE INDEX: CREATE DB wlc-trees ./trees RUN ./xquery/add-wlc-verses-words.xq OPTIMIZE If you want to keep your attribute index updated, you can enabled the UPDINDEX flag:
SET UPDINDEX true
CREATE DB wlc-trees ./trees
RUN ./xquery/add-wlc-verses-words.xq
Hope this helps.
JR
Jonathan Robie30 Jul 2021 00:53 #
What order dependencies are there for operations in a bxs file? I am setting up an environment that populates two databases from upstream sources. It runs queries to modify the structure somewhat, they adds an index, then calls optimize. After that it exports to a directory for comparison. Does order matter? What is a good order? CREATE DB wlc-trees ./trees RUN ./xquery/add-wlc-verses-words.xq CREATE INDEX ATTRIBUTE OPTIMIZE EXPORT ./out/wlc SET CHOP false SET EXPORTER indent=no,omit-xml-declaration=no CREATE DB oshb-morphology ./morphhb/wlc RUN ./xquery/oshb-pure-qere-reading.xq RUN ./xquery/merge-proper-nouns-oshb.xq CREATE INDEX ATTRIBUTE OPTIMIZE EXPORT ./out/oshb Thanks! Jonathan

⚡Generated with XQuery