Re: Re[4]: [bdbxml] Suggestion: XmlIndexLookup to return the number of referred keys
George Feinberg <[email protected]> Mon, 17 Apr 2006 14:15:07 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
> Hello George, > > Monday, April 17, 2006, 2:48:31 PM, you wrote: > >> I understand. On the other hand, too much tracking of >> index information can create a concurrency hotspot >> and bottleneck of its own, so we have to be careful. > Isn't that information retrievable internally by calling db.stat() on > the index db handle ? Not exactly. BDB XML keeps a separate DB database for each index data *type* but not each node of that type. i.e. these indexes will share a single index database: "" age node-element-equality-string "" name node-element-equality-string The stats kept by the underlying DB are not useful, unless you know that there is only one index name/type pair kept in that index database. Keeping a database for each name/type pair may be reasonable, but is not the current situation. The lookupStatistics() methods will work. You haven't yet described what your attempting to do, or workaround with that information, other than returning counts of things. Regards, George ------------------------------------------ To remove yourself from this list, send an email to [email protected]