niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Berkeley DB
Whole document vs. node values
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
George
*nix forums Guru Wannabe


Joined: 26 Feb 2005
Posts: 198

PostPosted: Fri Mar 04, 2005 7:06 pm    Post subject: Re: Whole document vs. node values Reply with quote

Quote:
an InputStream or a string. It seems the only way to do this is as
follows:

value.asDocument().getContentAsString();

Yes, give or take your language interface. If the container
is whole-document storage, there is no parsing involved
in returning the content. However, there may have been parsing
involved in query execution. All but the simplest queries will
parse the document (in whole-doc) during execution.
If you have a very specific index you know will target the
correct document(s), consider the XmlContainer::lookupIndex()
interface.

The best way to ensure whole-doc containers is to
be explicit in what type of container you want in the
XmlManager::createContainer() interface.

Once a container is created, its type cannot change.

Regards,

George
Sleepycat Software
Back to top
JPM
*nix forums beginner


Joined: 03 Mar 2005
Posts: 1

PostPosted: Thu Mar 03, 2005 9:59 pm    Post subject: Whole document vs. node values Reply with quote

I want to deal with whole documents exclusively. When I fetch an
XmlValue from a result set I need to get the entire document as either
an InputStream or a string. It seems the only way to do this is as
follows:

value.asDocument().getContentAsString();

Is this an efficient way of getting the whole document? Is it parsed by
the asDocument and then serialized back out by the
getContentAsString()? This does not seem to be the case from what I saw
poking around the C++ code. I would just like a little confirmation
that I am doing this the best way. Also am I best off setting
nodeContainer to false if I want to deal exclusivly with whole
documents?

Thanks
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 4:06 am | All times are GMT
navigation Forum index » Databases » Berkeley DB
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts does the default constructor initialize values? NewToCPP C++ 12 Thu Jul 20, 2006 3:37 pm
No new posts converting array values to monomaniac21 PHP 11 Thu Jul 20, 2006 10:17 am
No new posts How to use a module's @EXPORT array to document its expor... Henry Law Perl 7 Wed Jul 19, 2006 4:52 pm
No new posts Must GET/POST Parameters Have Values? (And What is the Sy... David T. Ashley PHP 2 Wed Jul 19, 2006 1:10 am
No new posts number of distinct values in tsearch2 gist index Kevin Murphy PostgreSQL 0 Tue Jul 18, 2006 5:24 pm

Loans | Credit Reports | Rapidshare eBooks Download | Debt Consolidation | Bankruptcy
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1682s ][ Queries: 20 (0.0987s) ][ GZIP on - Debug on ]