Document-get has a file size limitation too. I forgot were it is in the
docs, but Mike mentioned it recently. 16Mb with 32-bit, 64Mb with 64-bit.
Filesystem-file doesn't have this limitation, and I suspect the
external-binary function neither..

Grtz

> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:general-
> [email protected]] Namens Danny Sokolsky
> Verzonden: woensdag 15 februari 2012 2:41
> Aan: MarkLogic Developer Discussion
> Onderwerp: Re: [MarkLogic Dev General] xdmp:document-get vs
> xdmp:extermal-binary
>
> And functionally, xdmp:document-get typically returns a document node
that
> contains the binary node, wereas xdmp:external-binary just returns the
bytes (as
> does xdmp:filesystem-file).
>
> -Danny
>
> -----Original Message-----
> From: [email protected] [mailto:general-
> [email protected]] On Behalf Of Michael Blakeley
> Sent: Tuesday, February 14, 2012 10:54 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] xdmp:document-get vs xdmp:extermal-
> binary
>
> I don't think any filesystem function puts entries into the group-level
caches.
> Those caches are for forest fragments, not filesystem data. Other caches
do use
> filesystem data: the module cache, for example.
>
> Here's a quick test of the group-level caches:
>
> xdmp:cache-status()/*/*/*:partition-used/data(.),
> xdmp:document-get(
>   '/tmp/admin.xqy')
>   /string-length(.),
> xdmp:cache-status()/*/*/*:partition-used/data(.),
> current-dateTime()
> =>
> 3.7
> 23.4
> 0.4
> 469712
> 3.7
> 23.4
> 0.4
> 2012-02-14T10:46:56.723969-08:00
>
> >From what I can tell, xdmp:external-binary is just a way to call
document-get
> and subbinary together. It might be more efficient than calling each
function
> separately.
>
> -- Mike
>
> On 14 Feb 2012, at 10:35 , [email protected] wrote:
>
> > I'm looking for some validation in my understanding of these two
functions. Is
> this correct:
> >
> > 1) xdmp:document-get gets then entire file off of disk and it goes
into
> expanded tree cache
> >
> > 2) xdmp:external-binary gets only the bytes that you specify from the
file on
> disk and those bytes do not go into expanded tree cache
> >
> > Correct?
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://developer.marklogic.com/mailman/listinfo/general
>
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to