| From | Sent On | Attachments |
|---|---|---|
| Todd Gochenour | Feb 19, 2012 4:59 pm | |
| Damon Feldman | Feb 19, 2012 6:00 pm | |
| Todd Gochenour | Feb 19, 2012 10:56 pm | |
| Geert Josten | Feb 19, 2012 11:08 pm | |
| Geert Josten | Feb 19, 2012 11:12 pm | |
| Todd Gochenour | Feb 19, 2012 11:46 pm | |
| Geert Josten | Feb 20, 2012 2:42 am | |
| Damon Feldman | Feb 20, 2012 7:25 am | |
| Todd Gochenour | Feb 20, 2012 7:53 am | |
| Todd Gochenour | Feb 20, 2012 7:57 am | |
| Michael Blakeley | Feb 20, 2012 9:14 am | |
| Todd Gochenour | Feb 20, 2012 9:22 am | |
| Todd Gochenour | Feb 20, 2012 9:39 am | |
| Tim Meagher | Feb 20, 2012 9:56 am | |
| Michael Blakeley | Feb 20, 2012 9:59 am | |
| Michael Blakeley | Feb 20, 2012 10:10 am | |
| Todd Gochenour | Feb 20, 2012 10:48 am | |
| Todd Gochenour | Feb 20, 2012 12:16 pm | |
| Todd Gochenour | Feb 21, 2012 6:59 am | |
| David Lee | Feb 21, 2012 7:01 am | |
| Todd Gochenour | Feb 21, 2012 7:51 am | |
| David Lee | Feb 21, 2012 8:02 am | |
| mcun...@comcast.net | Feb 21, 2012 8:09 am | |
| Colleen Whitney | Feb 21, 2012 9:16 am | |
| Michael Blakeley | Feb 21, 2012 10:06 am | |
| Todd Gochenour | Feb 21, 2012 10:15 am | |
| Todd Gochenour | Feb 24, 2012 10:09 pm | |
| Geert Josten | Feb 24, 2012 11:57 pm | |
| Todd Gochenour | Feb 25, 2012 9:53 am | |
| Geert Josten | Feb 25, 2012 9:59 am | |
| Todd Gochenour | Feb 25, 2012 10:05 am | |
| Geert Josten | Feb 25, 2012 12:01 pm | |
| Todd Gochenour | Feb 25, 2012 4:04 pm | |
| Geert Josten | Feb 26, 2012 2:16 am | |
| Todd Gochenour | Feb 26, 2012 3:59 pm | |
| Todd Gochenour | Feb 26, 2012 10:09 pm |
| Subject: | Re: [MarkLogic Dev General] Processing Large Documents? | |
|---|---|---|
| From: | Tim Meagher (ti...@aaom.net) | |
| Date: | Feb 20, 2012 9:56:28 am | |
| List: | com.marklogic.developer.general | |
You might want to spawn the individual document inserts using xdmp:spawn() to avoid the timeouts.
~Tim Meagher
From: gene...@developer.marklogic.com [mailto:gene...@developer.marklogic.com] On Behalf Of Todd Gochenour Sent: Monday, February 20, 2012 12:23 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Processing Large Documents?
The XQuery I have for performing the chunking is timing out after 9 minutes (running in the query console). There are 156000 'rows' total in this extract. I'm now reading the Developer's guide for Understanding Transactions to figure out how I might optimize this query. My query reads:
declare function local:random-hex($length as xs:integer) as xs:string { string-join( for $n in 1 to $length return xdmp:integer-to-hex(xdmp:random(15)), "" ) };
declare function local:generate-uuid-v4() as xs:string { string-join(
(local:random-hex(8),local:random-hex(4),local:random-hex(4),local:random-he x(4),local:random-hex(12)), "-" ) };
for $row in /*/*/table_data/row let $record := element {$row/../@name} <mailto:%7b$row/../@name%7d> { for $field in $row/field[text()] return element {$field/@name} {$field/text()} } return xdmp:document-insert(concat(/*/*/@name,'/',name($record),'/',name($record),' _',local:generate-uuid-v4(),'.xml'), $record);
_______________________________________________ General mailing list Gene...@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general





