Implement read lock and write lock
Thursday, 17 August 2017 · 6 messages · last reply 18 Aug 2017
DS
DK Singh17 Aug 2017 09:52 #
Hi All,
How can i implement read lock and write lock, any functions to do this
Regards
Dharmendra Kumar Singh
FE
Fabrice ETANCHAUD17 Aug 2017 10:31 #
Hi Dharmendra Kumar,
Maybe you shall have a look at the following resource :
http://docs.basex.org/wiki/Transaction_Management
Regards,
Fabrice Etanchaud
“Perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away."
Saint-Exupéry
Quoted text · DK Singh · 8 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de DK Singh Envoyé : jeudi 17 août 2017 09:53 À : BaseX Objet : [basex-talk] Implement read lock and write lock Hi All, How can i implement read lock and write lock, any functions to do this Regards Dharmendra Kumar Singh
DS
Dharmendra Singh17 Aug 2017 11:03 #
Thanks for your reply favrice,
I am new in the BaseX so if you little explore.
i have gone through the documentation within documentation these line has been given
declare option query:read-lock "foo,bar";
declare option query:read-lock "batz";
declare option query:write-lock "quix";i have the file structure:
/bloomsbury/config/audit.xml
so i have to lock the audit.xml so how can i do that.
Regards
Dharmendra Kumar Singh
Quoted text · Fabrice ETANCHAUD · 1 line
On Thursday, 17 August 2017 2:01 PM, Fabrice ETANCHAUD <fetanchaud at pch.cerfrance.fr> wrote:
Hi Dharmendra Kumar,
Maybe you shall have a look at the following resource :
http://docs.basex.org/wiki/Transaction_Management
Regards,
Fabrice Etanchaud
“Perfection is finally attained not when there is no longer anything to add,
but when there is no longer anything to take away."
Saint-Exupéry
Quoted text · basex-talk-bounces at mailman.uni-konstanz.de · 9 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de DK Singh Envoyé : jeudi 17 août 2017 09:53 À : BaseX Objet : [basex-talk] Implement read lock and write lock Hi All, How can i implement read lock and write lock, any functions to do this Regards Dharmendra Kumar Singh
FE
Fabrice ETANCHAUD17 Aug 2017 11:14 #
Hi Dhamendra Kumar,
XQuery and BaseX are extremely productive technologies,
But at the cost of a minimal learning time.
I am sorry I cannot help at that point,
You should take the time to read a few tutorials and have an overview of all the BaseX capabilities by reading the documentation starter sections.
Best regards,
Fabrice
Quoted text · Dharmendra Singh · 32 lines
De : Dharmendra Singh [mailto:dharam.mahi at gmail.com] Envoyé : jeudi 17 août 2017 11:04 À : Fabrice ETANCHAUD; BaseX Objet : Re: [basex-talk] Implement read lock and write lock Thanks for your reply favrice, I am new in the BaseX so if you little explore. i have gone through the documentation within documentation these line has been given declare option query:read-lock "foo,bar"; declare option query:read-lock "batz"; declare option query:write-lock "quix"; i have the file structure: /bloomsbury/config/audit.xml so i have to lock the audit.xml so how can i do that. Regards Dharmendra Kumar Singh On Thursday, 17 August 2017 2:01 PM, Fabrice ETANCHAUD <fetanchaud at pch.cerfrance.fr<mailto:fetanchaud at pch.cerfrance.fr>> wrote: Hi Dharmendra Kumar, Maybe you shall have a look at the following resource : http://docs.basex.org/wiki/Transaction_Management Regards, Fabrice Etanchaud “Perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away." Saint-Exupéry De : basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de DK Singh Envoyé : jeudi 17 août 2017 09:53 À : BaseX Objet : [basex-talk] Implement read lock and write lock Hi All, How can i implement read lock and write lock, any functions to do this Regards Dharmendra Kumar Singh
KS
Kendall Shaw18 Aug 2017 22:18 #
I would like to know what the read-lock and write-lock parameters mean. The documentation says they are in a different namespace than database names, so “factbook” doesn’t refer to the “factbook” database. What do the parameters refer to?
For Dharmendra’s questions, if /bloomsbury/config/audit.xml is a path in BaseX rather than a filesystem path, then probably nothing needs to be done other than being aware of what gets locked in which situation as described in that chapter.
If it is a filesystem path, then I think the scenario would need to be described more in order to answer the question.
Kendall
Quoted text · Fabrice ETANCHAUD · 43 lines
From: <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Fabrice ETANCHAUD <fetanchaud at pch.cerfrance.fr> Date: Thursday, August 17, 2017 at 2:14 AM To: 'Dharmendra Singh' <dharam.mahi at gmail.com>, BaseX <basex-talk at mailman.uni-konstanz.de> Subject: Re: [basex-talk] Implement read lock and write lock Hi Dhamendra Kumar, XQuery and BaseX are extremely productive technologies, But at the cost of a minimal learning time. I am sorry I cannot help at that point, You should take the time to read a few tutorials and have an overview of all the BaseX capabilities by reading the documentation starter sections. Best regards, Fabrice De : Dharmendra Singh [mailto:dharam.mahi at gmail.com] Envoyé : jeudi 17 août 2017 11:04 À : Fabrice ETANCHAUD; BaseX Objet : Re: [basex-talk] Implement read lock and write lock Thanks for your reply favrice, I am new in the BaseX so if you little explore. i have gone through the documentation within documentation these line has been given declare option query:read-lock "foo,bar"; declare option query:read-lock "batz"; declare option query:write-lock "quix"; i have the file structure: /bloomsbury/config/audit.xml so i have to lock the audit.xml so how can i do that. Regards Dharmendra Kumar Singh On Thursday, 17 August 2017 2:01 PM, Fabrice ETANCHAUD <fetanchaud at pch.cerfrance.fr<mailto:fetanchaud at pch.cerfrance.fr>> wrote: Hi Dharmendra Kumar, Maybe you shall have a look at the following resource : http://docs.basex.org/wiki/Transaction_Management<https://urldefense.proofpoint.com/v2/url?u=http-3A__docs.basex.org_wiki_Transaction-5FManagement&d=DwMGaQ&c=DS6PUFBBr_KiLo7Sjt3ljp5jaW5k2i9ijVXllEdOozc&r=JgwnBEpN1c-DDmq-Up2QMq9rrGyfWK0KtSpT7dxRglA&m=KXAttJfWhYBreEBbFknOurwEqQ4KhOWRtVrDH6t7Sx8&s=09eFTXhLtHgU56-gIAEDVb-csgVoQDBYIskFp9kfNsk&e=> Regards, Fabrice Etanchaud “Perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away." Saint-Exupéry De : basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de DK Singh Envoyé : jeudi 17 août 2017 09:53 À : BaseX Objet : [basex-talk] Implement read lock and write lock Hi All, How can i implement read lock and write lock, any functions to do this Regards Dharmendra Kumar Singh
CG
Christian Grün18 Aug 2017 22:45 #
Hi Kendall,
I see the documentation of the custom XQuery locks repeatedly leads to misunderstandings. I hope my recent edits will clarify the semantics:
http://docs.basex.org/wiki/Transaction_Management#Query_Options
Best,
Christian
Quoted text · Kendall Shaw · 164 lines
On Fri, Aug 18, 2017 at 10:18 PM, Kendall Shaw <kendall.shaw at workday.com> wrote: > I would like to know what the read-lock and write-lock parameters mean. The > documentation says they are in a different namespace than database names, so > “factbook” doesn’t refer to the “factbook” database. What do the parameters > refer to? > > > > For Dharmendra’s questions, if /bloomsbury/config/audit.xml is a path in > BaseX rather than a filesystem path, then probably nothing needs to be done > other than being aware of what gets locked in which situation as described > in that chapter. > > > > If it is a filesystem path, then I think the scenario would need to be > described more in order to answer the question. > > > > Kendall > > > > From: <basex-talk-bounces at mailman.uni-konstanz.de> on behalf of Fabrice > ETANCHAUD <fetanchaud at pch.cerfrance.fr> > Date: Thursday, August 17, 2017 at 2:14 AM > To: 'Dharmendra Singh' <dharam.mahi at gmail.com>, BaseX > <basex-talk at mailman.uni-konstanz.de> > Subject: Re: [basex-talk] Implement read lock and write lock > > > > Hi Dhamendra Kumar, > > > > XQuery and BaseX are extremely productive technologies, > > But at the cost of a minimal learning time. > > > > I am sorry I cannot help at that point, > > You should take the time to read a few tutorials and have an overview of all > the BaseX capabilities by reading the documentation starter sections. > > > > Best regards, > > Fabrice > > > > > > De : Dharmendra Singh [mailto:dharam.mahi at gmail.com] > Envoyé : jeudi 17 août 2017 11:04 > À : Fabrice ETANCHAUD; BaseX > Objet : Re: [basex-talk] Implement read lock and write lock > > > > Thanks for your reply favrice, > > > > I am new in the BaseX so if you little explore. > > > > > > i have gone through the documentation within documentation these line has > been given > > > > declare option query:read-lock "foo,bar"; > > declare option query:read-lock "batz"; > > declare option query:write-lock "quix"; > > > > i have the file structure: > > > > /bloomsbury/config/audit.xml > > > > so i have to lock the audit.xml so how can i do that. > > > > > > Regards > > Dharmendra Kumar Singh > > > > On Thursday, 17 August 2017 2:01 PM, Fabrice ETANCHAUD > <fetanchaud at pch.cerfrance.fr> wrote: > > > > Hi Dharmendra Kumar, > > > > Maybe you shall have a look at the following resource : > > > > http://docs.basex.org/wiki/Transaction_Management > > > > > > Regards, > > Fabrice Etanchaud > > > > “Perfection is finally attained not when there is no longer anything to add, > > but when there is no longer anything to take away." > > Saint-Exupéry > > > > > > De : basex-talk-bounces at mailman.uni-konstanz.de > [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de DK Singh > Envoyé : jeudi 17 août 2017 09:53 > À : BaseX > Objet : [basex-talk] Implement read lock and write lock > > > > Hi All, > > > > How can i implement read lock and write lock, any functions to do this > > > > Regards > > Dharmendra Kumar Singh > >
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery