@ Josh Bench: My admin has already installed new version of marklogic on both the host. @ Jakob: So do I need to revert and upgrade again?
-----Original Message----- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of general-requ...@developer.marklogic.com Sent: Tuesday, May 24, 2016 10:40 PM To: general@developer.marklogic.com Subject: General Digest, Vol 143, Issue 34 Send General mailing list submissions to general@developer.marklogic.com To subscribe or unsubscribe via the World Wide Web, visit http://developer.marklogic.com/mailman/listinfo/general or, via email, send a message with subject or body 'help' to general-requ...@developer.marklogic.com You can reach the person managing the list at general-ow...@developer.marklogic.com When replying, please edit your Subject line so it is more specific than "Re: Contents of General digest..." Today's Topics: 1. Re: Error while doing Marklogic upgrade (Anshuman Srivastava) (Jakob Fix) 2. Re: How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded (Kari Cowan) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 May 2016 17:38:39 +0200 From: Jakob Fix <jakob....@gmail.com> Subject: Re: [MarkLogic Dev General] Error while doing Marklogic upgrade (Anshuman Srivastava) To: MarkLogic Developer Discussion <general@developer.marklogic.com> Message-ID: <cacmjrh-_9mto05kntcqqmft9o98bw6pwjwbgtxcbi+vgrjh...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" It would appear that this approach will be optimised in MarkLogic 9 (if I understood the keynote at MLW right): upgrade just one node, and it will then propagate the upgrade to the other nodes, automagically. cheers, Jakob. On Tue, May 24, 2016 at 5:29 PM, Josh Bench <josh.be...@wealthcounsel.com> wrote: > Hi Anshuman, > > It looks like you need to upgrade MarkLogic on the other two hosts in > the cluster as well (abnpoc2 and abnpoc3), if you haven't done that already. > > > > On Tue, May 24, 2016 at 7:36 AM, > <general-requ...@developer.marklogic.com> > wrote: > >> Send General mailing list submissions to >> general@developer.marklogic.com >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://developer.marklogic.com/mailman/listinfo/general >> or, via email, send a message with subject or body 'help' to >> general-requ...@developer.marklogic.com >> >> You can reach the person managing the list at >> general-ow...@developer.marklogic.com >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of General digest..." >> >> >> Today's Topics: >> >> 1. Error while doing Marklogic upgrade (Anshuman Srivastava) >> >> >> --------------------------------------------------------------------- >> - >> >> Message: 1 >> Date: Tue, 24 May 2016 13:35:41 +0000 >> From: Anshuman Srivastava <anshuman.srivast...@infosys.com> >> Subject: [MarkLogic Dev General] Error while doing Marklogic upgrade >> To: "general@developer.marklogic.com" >> <general@developer.marklogic.com> >> Message-ID: >> < >> 62d48600c4e1934686d7c950d3f4b927192...@punitpmbx12.ad.infosys.com> >> Content-Type: text/plain; charset="us-ascii" >> >> Hi, >> >> We are getting error while upgrading marklogic from 8.0-3.2 to >> 8.0-5.2 on RHEL6.5. >> >> [cid:image002.jpg@01D1B5EF.4390F680] >> >> We have 3 host, when we trying to reach the host where Security and >> schemas forest, then above screen is appearing and "OK" button is disabled. >> >> All the other host are down. >> >> [cid:image004.jpg@01D1B5EF.4390F680] >> >> Can you please suggest what can be done in this case? >> >> Regards, >> Anshuman >> >> >> -------------- next part -------------- An HTML attachment was >> scrubbed... >> URL: >> http://developer.marklogic.com/pipermail/general/attachments/20160524 >> /774c461d/attachment.html >> -------------- next part -------------- A non-text attachment was >> scrubbed... >> Name: image002.jpg >> Type: image/jpeg >> Size: 19508 bytes >> Desc: image002.jpg >> Url : >> http://developer.marklogic.com/pipermail/general/attachments/20160524 >> /774c461d/attachment.jpg >> -------------- next part -------------- A non-text attachment was >> scrubbed... >> Name: image004.jpg >> Type: image/jpeg >> Size: 15395 bytes >> Desc: image004.jpg >> Url : >> http://developer.marklogic.com/pipermail/general/attachments/20160524 >> /774c461d/attachment-0001.jpg >> >> ------------------------------ >> >> _______________________________________________ >> General mailing list >> General@developer.marklogic.com >> Manage your subscription at: >> http://developer.marklogic.com/mailman/listinfo/general >> >> >> End of General Digest, Vol 143, Issue 31 >> **************************************** >> > > > > -- > > Josh Bench > System Administrator > > josh.be...@wealthcounsel.com > 888-659-4069 ext.897 > > > P.O. Box 44403 | Madison, WI 53744 > WealthCounsel.com > > <https://www.facebook.com/WealthCounsel/?utm_source=WiseStamp&utm_medi > um=email&utm_term=&utm_content=&utm_campaign=signature> > > <https://plus.google.com/u/0/110019845109170387394/posts?utm_source=Wi > seStamp&utm_medium=email&utm_term=&utm_content=&utm_campaign=signature > > > > <https://www.youtube.com/user/WealthCounsel?utm_source=WiseStamp&utm_m > edium=email&utm_term=&utm_content=&utm_campaign=signature> > > <https://twitter.com/WealthCounsel/?utm_source=WiseStamp&utm_medium=em > ail&utm_term=&utm_content=&utm_campaign=signature> > > <https://www.linkedin.com/groups/1856752/profile?utm_source=WiseStamp& > utm_medium=email&utm_term=&utm_content=&utm_campaign=signature> > Discover Symposium at Symposium2016.com > <http://www.symposium2016.com/?utm_source=WiseStamp&utm_medium=email&u > tm_term=&utm_content=&utm_campaign=signature>. Register by May 31 and save > $100! > > _______________________________________________ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20160524/74ae1fc5/attachment-0001.html ------------------------------ Message: 2 Date: Tue, 24 May 2016 17:11:25 +0000 From: Kari Cowan <kco...@alm.com> Subject: Re: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded To: MarkLogic Developer Discussion <general@developer.marklogic.com> Message-ID: <08b718b8ce98354e94d0201c94f374ad7c921...@exmb02nyc1.nyc.amlaw.corp> Content-Type: text/plain; charset="utf-8" Jason, Geert ? thanks for the suggestions. I am going to test some changes out ? we?re first trying moving the xQuery into the java application itself rather than calling the script via the app ? for better processing. Do appreciate the ideas ? thanks again. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jason Hunter Sent: Tuesday, May 24, 2016 6:37 AM To: MarkLogic Developer Discussion <general@developer.marklogic.com> Subject: Re: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded One tip: Any time you can express $node//child as $node/exact/path/to/child you'll get better performance, because it saves MarkLogic from having to scan the full tree looking for the child. Then there's little things to try, like if you're going to repeatedly compare a node to another node's value, you can get the data($val) value and compare using that instead, so the atomization of the node happens just once. Internal optimizations things like this change between server versions so I tend to experiment. And why get /text() if you want /string(). The following line of code is called presumably a large number of times, so the above ideas could help. $xml_doc//firmname[.=$theOrigFirmname]/../translation/text() Maybe: $xml_doc/exact/path/translation[firmname = $theOrigFirmnameData]/string() Also, have you tried using the profiler? -jh- On May 24, 2016, at 2:53 AM, Kari Cowan <kco...@alm.com<mailto:kco...@alm.com>> wrote: The file is used in a different application that I don?t have control over, so I am just adjusting the data that?s in the file ? to fix the firmname (correcting some typo?s and inconsistencies they had and continue to have ? can?t really prevent that because the service pulls the data from various public court records and every law clerk seems to have their own way of entering the data). When my script is doing: for $firms in $pacer_doc//(counsel|party) ? Is there a better way than load the doc nodes in a for loop ? maybe some other function I am not aware of or another flowr ? From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Monday, May 23, 2016 11:44 AM To: MarkLogic Developer Discussion <general@developer.marklogic.com<mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded Hi Kari, 13 Mb isn?t really big actually, but big enough to perform less optimal, and cause timeouts. You could just increase the timeout, but it is probably a better idea to revise your strategy, and consider breaking your large file into record-like files (each containing just one firm for instance). You can then make much more use of the search capabilities of MarkLogic. Cheers, Geert From: <general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>> on behalf of Kari Cowan <kco...@alm.com<mailto:kco...@alm.com>> Reply-To: MarkLogic Developer Discussion <general@developer.marklogic.com<mailto:general@developer.marklogic.com>> Date: Monday, May 23, 2016 at 8:40 PM To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" <general@developer.marklogic.com<mailto:general@developer.marklogic.com>> Subject: [MarkLogic Dev General] How to handle very large xml file to prevent com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded There must be a better way to do this. My script works fine when it?s loading a document that is not very large, but occassionally one of the docs is massive (13Mb on one of my error issues), and when that happens, in my application I get an error like: com.marklogic.xcc.exceptions.XQueryException: Time limit exceeded The script is basically getting a uri, reading it back and comparing the ?firmname? nodes (there can be many in the same document), and if it differs in the shortlist.xml, we change it to what that file says it should be. The problem with my large file ? there?s over 72,000 lawfirms it?s trying to compare This is my script ? anyone have a suggestion of a better way to accomplish what I am attempting? xquery version "1.0-ml"; declare namespace html = "http://www.w3.org/1999/xhtml"; declare variable $uri as xs:string external; let $uri := try { ($uri) } catch ($e) { "" } (: let $uri:="/olympus/pacer-xml/9739715_3:15-cv-01221" :) let $xml_doc:=fn:doc("/olympus/data-utils/standard_firmnames_shortlist.xml") for $this_uri in "$uri" let $doc := fn:doc($uri) let $pacer_doc:=$doc for $firms in $pacer_doc//(counsel|party) let $theOrigFirmname:= $firms/originalFirmname let $theFirmname:= $firms/firmname let $translation:= $xml_doc//firmname[.=$theOrigFirmname]/../translation/text() for $firm in $pacer_doc return if( fn:exists($translation) and fn:exists($theFirmname) and ($translation ne $theFirmname ) ) then ( fn:concat("CHANGING FIRMNAME: ",$theFirmname, " TO STANDARD FIRMNAME TRANSLATION: ",$translation, " IN URI: " ,$uri), xdmp:log(fn:concat("Olympotomus Changed Firmname: ",$theFirmname, " in URI: " ,$uri)), xdmp:node-replace($theFirmname,<firmname>{$translation}</firmname>) ) else ( fn:concat("...Evaluated and did not change Firmname: ",$theFirmname, " in URI: " ,$uri), xdmp:log(fn:concat("Olympotomus Evaluated and did not change a Firmname: ",$theFirmname, " in URI: " ,$uri)) ) ________________________________ ALM, an information and intelligence company, provides customers with critical news, data, analysis, marketing solutions and events to successfully manage the business of business. Customers use ALM solutions to discover new ideas and approaches for solving business challenges, connect to the right professionals and peers to move business forward, and compete to win through access to data, analytics and insight. ALM serves a community of over six million business professionals seeking to discover, connect and compete in highly complex industries. Learn more at www.alm.com<x-msg://137/www.alm.com>. ________________________________ ALM, an information and intelligence company, provides customers with critical news, data, analysis, marketing solutions and events to successfully manage the business of business. Customers use ALM solutions to discover new ideas and approaches for solving business challenges, connect to the right professionals and peers to move business forward, and compete to win through access to data, analytics and insight. ALM serves a community of over six million business professionals seeking to discover, connect and compete in highly complex industries. Learn more at www.alm.com<x-msg://137/www.alm.com>. _______________________________________________ General mailing list General@developer.marklogic.com<mailto:General@developer.marklogic.com> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general -------------- next part -------------- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20160524/70aa7633/attachment.html ------------------------------ _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general End of General Digest, Vol 143, Issue 34 **************************************** _______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general