FWIW, we generally use the database names rather than their ids in our configuration files. It's just easier to see what's going on if you have a lot of configuration data to sort through, and as Michael Blakeley pointed out, the ids won't be portable. So if you have, say, a development setup and a production setup, they can share the same database names, but not the same database ids. You can always get the id for a name using xdmp:database()
Also, there are some APIs (like the Java XCC API) that expect a name for specifying a database. Maybe you can use ids there, too, but I'm not sure you can. -Mike On 10/21/2012 01:49 PM, Florent Georges wrote: > Hi, > > For some configuration purpose, I have to point to databases > from a config file. Can I use the IDs of the databases, as > returned by admin:get-database-ids()? Are they guaranted not to > change, ever? And same for App Servers ? > > Regards, > > > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
