[MarkLogic Dev General] MLS map:map API
Geert.Josten at daidalos.nl
Mon Mar 29 00:28:43 PST 2010
I can't tell for sure whether the argument to map:map is being passed as reference, though I would expect so. That should not really matter though; the map library does not serialize to XML on the backend as far as I know. To my knowledge it creates a hash table in memory which therefor only survives throughout the transaction. It works well if you have upto a few thousand items and use the map at least a few times during the transaction. The more you use it, the more benefit you have of it. If you have more than a few thousand items, use the lookup in every request, and/or only a few times each time, then it is most likely more efficient to store each lookup value as a separate doc in the database, add a range index on it and use cts library to query it..
drs. G.P.H. (Geert) Josten
2665 JZ Bleiswijk
T +31 (0)10 850 1200
F +31 (0)10 850 1199
mailto:geert.josten at daidalos.nl
P Please consider the environment before printing this mail.
De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
> From: general-bounces at developer.marklogic.com
> [mailto:general-bounces at developer.marklogic.com] On Behalf Of
> deepak mohan
> Sent: zondag 28 maart 2010 17:39
> To: general at developer.marklogic.com
> Subject: [MarkLogic Dev General] MLS map:map API
> HI TEAM,
> we are developing the web application using xqmvc to acheive
> MVC. we use the map:map API FREQUENTLY across the layers. I
> believe the api will serialize and deserialize the entries as
> xml behind the screen. Please clarify me, how the ML uses the
> map document during method invocation (pass by value (new map
> document) or pass by reference(hopefully map-doc-uri)). And
> also please tell me the pros and cons of using maps..
> looking for the responses...
> deepak mohanakrishnan.
> The INTERNET now has a personality. YOURS! See your Yahoo!
> <http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/> .
More information about the General