Hi Deepak, 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..
Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 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: [email protected] > [mailto:[email protected]] On Behalf Of > deepak mohan > Sent: zondag 28 maart 2010 17:39 > To: [email protected] > 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... > > THANKS, > deepak mohanakrishnan. > > > > ________________________________ > > The INTERNET now has a personality. YOURS! See your Yahoo! > Homepage > <http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/> . > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
