[XQZone General] Query two databases.

Jason Hunter jhunter at marklogic.com
Mon May 30 16:08:27 PDT 2005


As you know, each socket has associated with it a default database. 
Within that execution environment, the trick to accessing a different 
database is the xdmp:eval-in() function.  This function accepts as its 
second argument the database in which the eval should happen.  Thus you 
can from one database execute a query in another, and mix results to 
taste.  :)

-jh-

John C. Landers wrote:

> I was wondering if and how one
> would setup MarkLogic to query 2 databases.
> Say one database was order entry data and the other was a 
> reporting/archive database. Can one
> query both data sets together.
> 
> Thanks for any feedback, jcl.
> 
> 
> _______________________________________________
> General mailing list
> General at xqzone.marklogic.com
> http://xqzone.com/mailman/listinfo/general
> 



More information about the General mailing list