Re: [MarkLogic Dev General] Why No cts:median-aggregate() Function?

2017-08-28 Thread John Snelson
The median of a dataset can't be calculated in a distributed fashion, so no such function exists for it. John On 25/08/2017 14:15, Eliot Kimber wrote: > I’m upgrading my profiling system to use cts:math functions for doing math on > large numbers of durations—this speeds things up tremendously

Re: [MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-08-28 Thread Eliot Kimber
Thanks—I should be able to test with latest ML 8 in a couple of days. Cheers, E. -- Eliot Kimber http://contrext.com On 8/28/17, 12:37 PM, "general-boun...@developer.marklogic.com on behalf of Christopher Hamlin" wrote: There was a bug where, under certain circumstances, the profiler

Re: [MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-08-28 Thread Christopher Hamlin
There was a bug where, under certain circumstances, the profiler will result in a query deadlock &/or a resource leak (#45569). It could be that this is what you are seeing. It was noticed in 8.0-2 and is fixed in the latest release (8.0-7). On Mon, Aug 28, 2017 at 1:11 PM, Eliot Kimber wrote:

[MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-08-28 Thread Eliot Kimber
I reported earlier that my profiling application was causing MarkLogic to restart after handling about 20,000 tasks. Turns out it was an out-of-memory issue on the server itself (currently configured with 256GB of RAM). We could see a distinct spike in memory usage, at which point the server res

Re: [MarkLogic Dev General] Reagrding ingesting one more attributes to the XMLs

2017-08-28 Thread shabana khan
Hi Siva, I am not sure what you are trying to achieve exactly but if you don't want to use node-replace and have a fixed structured existing XMLs then you can go for typeswitch() function to add the new namespace to the book node. Hope it helps! Thanks, Shabana Thanks and Regards, Shabana Khan

Re: [MarkLogic Dev General] Noob query question..

2017-08-28 Thread Ladner, Eric (Eric.Ladner)
I was wondering... :) Thanks for all the info, folks. I have some stuff to chew on now. Eric Ladner Systems Analyst eric.lad...@chevron.com From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Dave Cassel

[MarkLogic Dev General] Reagrding ingesting one more attributes to the XMLs

2017-08-28 Thread Mani, Sivasubramani (ELS)
HiTeam, I need to add one more attributes to the old XML tag. Without using node replacement. But I don't know how to add it, kindly suggest XDMP methods regarding the same. eg: My file is book.xml http://www.team.com/xml/document/schema"; xmlns:dp="http://www.team.com/xml/common/doc-