Query performance - A single large document VS multiple small documents

Hi all,
What are the performance trade offs when using a single large document VS multiple small documents ?
I want to store xml snippets with similar structure in a container. Is there any benefit while querying, if I use a single large document to store all these snippets against adding each snippet as a different document. Would it degrade the performance when adding an xml snippet each time by modifying an existing document?
How could we decide whether to use a single large document VS multiple small documents?
Thanks,
Anoop

Hello Anoop,
In case you wanted to get a comparison between the storage types for containers, wholedoc and node, let us know.
What are the performance trade offs when using a
single large document VS multiple small documents ?Depends on what is more important to you, performance when creating the container, and inserting the document(s) or performance when retrieving data.
For querying the best option is to go with smaller documents, as node indexes would help in improving query performance.
For inserting initial data, you can construct your large document composed of smaller xml snippets and insert the document as a whole.
If you further want to modify this document changing its structure implies performance penalties; more indicated is to store the xml snippets as documents.
Overall, I see no point in using a large document that will hold all of your xml snippets, so I strongly recommend going with multiple smaller documents.
Regards,
Andrei Costache
Oracle Support Services

Similar Messages

  • Single billing document for multiple delivery documents

    Hi,
    Can someone tell me how to configure or proceed to make single billing document for multiple delivery documents.
    Document flow: Contract--> Order---> Delivery----> Billing
    -Thanks

    Being an old member of the forum, there is no need to stress the importance of adhering to forum rules where it has been clearly spelled out to avoid posting repeated queries.
    If you search the forum or Google it, you will find lot of documentations available on the same topic.  Take the inputs and try on your own.  Still if you face any issue, update here.
    G. Lakshmipathi

  • Convert a word document to multiple PDF documents

    Hello
    I would like to convert a word document to multiple PDF documents. (i.e. convert 20 page word document into 20 single page PDF's). Is it possible to do this easliy and quickly.
    I have used word mail merge to create multiple cover letters in word
    I would now like to convert each cover letter (which is 1 page each) into individialized PDF's so that I can email them out as attachments
    I currently have been copying and pasting from my master word document into a fresh word document (one page at a time) then, saving, then converting to PDF one cover letter at a time. Although this works it is time consuming and I figured there may be an easier quicker way to do this
    Any thoughts, suggesstions, would be greatly appreciated
    Thanks

    It is possible to convert the word document into a PDF then while the PDF is open do:
    Document
    Extract Pages
    1-20
    Check "Extract pages as seperate files"
    This will give you 20 seperate files.
    Hope it helps!

  • One Billing document for multiple Dilevery Documents

    Dear All,
             I m trying to generate one billing documents for multiple dilveries documents with Tcode : VF04. But it is generating billing documents for all the delivery documents.  M i missing any configuration or some thing like that.
    Suggestions?
    Regards,
    Vikas

    Hi Vikas,
    after you created the billing document there is one menu option protocol. If have it not 100% in mind and i am note able to test it for the moment.
    T

  • Can a single sales document have multiple delivary documents...??

    hi guys....
    Can a single item in a sales order can have multiple delivary documents...??
    means an item in sales order has been divided into multiple parts and delivered at multiple instances rather than whole at a time...
    I hope it is possible.
    I it is possible then how to find those records..?

    @Ravi Kumar.R
    Am new to SDN, I never expected such a quick response.
    Thank U dude...

  • Loading/breaking large files containing multiple XML documents using plsql

    Hi I have a requirement where in the client sends the multiple xml payloads/documents in a single text file. I need to load that into the xmltype varialbe. How to do this?
    I'm able to load the entire document into a clob object, here.. all the xml payloads are loaded into a single row. When I try to access this I get a error
    ORA-31001: Invalid resource handle or path name "/MobileInventoryResponse.dtd"
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    This error is due to the dtd present in the xml document : <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    But if I load the data into a clob after removing the doctype reference then I get the following error. Here to mulitple xml documents are loaded into a single clob row.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00209: PI names starting with XML are reserved
    Error at line 81
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    When try to access this by using select xmltype(x) from t
    where x is column type of clob.
    Please let me know any method or type loading the multiple xml documents by using plsql. Only plsql method. There is a way by using SAX Loader. But can it be used in plsql or its a java method of loading.
    Regards,
    Naveen
    Edited by: MAN on Oct 18, 2008 9:21 PM

    sorry for that...
    There was enter character between some tags. From there I'm not receiving that particular error.
    Now what I get is
    ORA-31001: Invalid resource handle or path name "/MobileInventoryResponse.dtd"
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-06512: at line 39
    This is because there is a doctype at the start of the xml payload.
    But if there is no <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd"> this statement then it works fine.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE MobileInventoryResponse SYSTEM "MobileInventoryResponse.dtd">
    <MobileInventoryResponse>
    And this exercise I'm doing in my Windows xp loaded operating system with a local instance of oracle ... Do i need to do any other setting.
    Along with that I followed your method mentioned @ Re: LPX-00209: PI names starting with XML are reserved
    ignore:=dbms_xdb.createResource('/MobileInventoryResponse.dtd',bfilename('XML_DIR','MobileInventoryResponse.dtd'));
    And I'm not getting how it will refer the this resource.
    this above partilcular statement . should it be executed when ever we insert into the table ? But in the dtd there is no word saying "MobileInventoryResponse".
    got this error.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00104: Warning: element "MobileInventoryResponse" is not declared in the DTD
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-06512: at line 21
    This is how I'm doing in the block
    DECLARE
    l_filehandle UTL_FILE.FILE_TYPE;
    l_filename VARCHAR2(50):='test.xml';
    l_rec_data VARCHAR2(500);
    l_rec_trim_data VARCHAR2(500);
    l_rec_trim_upper VARCHAR2(500);
    l_rec_full_data CLOB;
    ignore boolean;
    BEGIN
    l_filehandle := UTL_FILE.FOPEN('XML_DIR',l_filename,'R');
    --dbms_xdb.deleteResource('/MobileInventoryResponse.dtd',dbms_xdb.DELETE_RESOURCE   );
    LOOP
    ignore:=dbms_xdb.createResource('/MobileInventoryResponse.dtd',bfilename('XML_DIR','MobileInventoryResponse.dtd'));
    commit;
    UTL_FILE.GET_LINE(l_filehandle, l_rec_data);
    --dbms_output.put_line('l_rec_data : '|| l_rec_data);
    -- Trim the record to remove spaces
    l_rec_trim_data := TRIM(l_rec_data);
    l_rec_trim_upper := UPPER(l_rec_trim_data);
    l_rec_full_data := l_rec_full_data||l_rec_data;
    IF l_rec_trim_upper LIKE '</MOBILEINVENTORYRESPONSE>' THEN
    dbms_output.put_line('l_rec_full_data : '||l_rec_full_data);
    INSERT INTO library_xml VALUES(xmltype(l_rec_full_data));
    l_rec_full_data:=NULL;
    END IF;
    dbms_xdb.deleteResource('/MobileInventoryResponse.dtd',dbms_xdb.DELETE_RESOURCE );
    commit;
    END LOOP;
    UTL_FILE.FCLOSE(l_filehandle);
    COMMIT;
    --exception just for testing purpose
    EXCEPTION
    WHEN no_data_found THEN
    NULL;
    commit;
    END;
    Edited by: MAN on Oct 21, 2008 2:47 AM

  • How do you print one large image onto multiple smaller sheets?

    For example, I want to print one 17x22-inch image onto 2, 8.5x11-inch sheets.

    I think you have your calculations wrong. It would take four sheets of paper to have the same size image because you have to double in both directions. I think printing an image on multiple pages is a function of the printer. If your printer has that capability then the options will be in the printer driver. Otherwise, I guess you could try to create virtual copies and crop each one individually and print them and hope they match up.
    My printer does not have that capability, so I'm not familiar with how it would work. But it might be necessary to print outside of Lightroom in order to me that feature function properly. If it sounds like I don't know what I'm talking about, that's probably because I don't, really.

  • Best way to split large partition in multiple small partitions

    Looking for some ideas here. We ended up having a large/huge partition, the last one (because of maxvalue), while other partitions have similar number of records. What's the best way to split this large partitions with has about 3 years worth of data into separate partitions based on Month/Year. I tried with SPLIT partition, I not able to figure out a way to specify a value where I can like to split.
    Any thoughts, ideas appreciated.
    Thanks

    I'd be inclined to split off that partition as a stand-alone table. Create new partitions and then reload the data. But that "inclined" would depend on the available maintenance window and the amount of data and the Oracle version number none of which you mention.

  • How to split Large file into Multiple small files..

    Hi,
       My source file is simple  XML structure...and target side also i need to send in XML files  .. but in the source file I'm getting all the data at a time.. so source file  is more than 1000 records.. but i want to process  50 records at a time...
    bu using FCC (RecordSet per Message)  we can   solve this.. but I dont want to  do any File conversion.. i want to send  in XML file only...
    for this.. how we can handle....
    Regards
    Jain

    Jain,
    Please see the below screenshots.
    http://www.flickr.com/photos/23855877@N07/2991137391/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991137441/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991988028/sizes/o/
    http://www.flickr.com/photos/23855877@N07/2991988084/sizes/o/
    For No, Name, City Map Directly.
    In the example, I've given 5 records to split. If you want 50 records to split, then instead of 5 give 50 in the constant.
    raj.

  • Query performance when multiple single variable values selected

    Hi Gurus,
    I have a sales analysis report that I run with some complex selection criteria.  One of the variables is the Sales Orgranisation.
    If I run the report for individual sales organisations, the performance is excellant, results are dislayed in a matter of seconds.  However, if I specify more than one sales organisation, the query will run and run and run.... until it eventually times out.
    For example; 
    I run the report for SALEORG1 and the results are displayed in less than 1 minute. 
    I then run the report for SALEORG2 and again the results are displayed in less than 1 minute.
    If I try to run the query for both SALEORG1 and SALEORG2, the report does not display any results but continues until it times out.
    Anybody got any ideas on why this would be happening?
    Any advise, gratefully accepted.
    Regards,
    David

    While compression is generally something that you should be doing, I don't think it is a factor here, since query performance is OK when using just a sinlge value.
    I would do two things - first make sure the DB stats for the cube are current.  You might even consider increasing the sample rate for the stats collection  if you are using one.  You don't mention the DB you use, or what type of index is on Salesorg which could play a role. Does the query run against a multiprovider on top of multiple cubes, or is there just one cube involved.
    If you still have problems after refreshing the stats, then I think the next step is to get a DB execution plan for the query by running the query from RSRT debugging mode when it is run with just one value and another when run with multiple values to see if the DB is doing something different - seek out your DBA if you are not familiar with executoin plan.

  • How to improve Query performance on large table in MS SQL Server 2008 R2

    I have a table with 20 million records. What is the best option to improve query performance on this table. Is partitioning the table into filegroups  is a best option or splitting the table into multiple smaller tables? 

    Hi bala197164,
    First, I want to inform that both to partition the table into filegroups and split the table into multiple smaller tables can improve the table query performance, and they are fit for different situation. For example, our table have one hundred columns and
    some columns are not related to this table object directly (for example, there is a table named userinfo to store user information, it has columns address_street, address_zip,address_ province columns, at this time, we can create a new table named as Address,
    and add a foreign key in userinfo table references Address table), under this situation, by splitting a large table into smaller, individual tables, queries that access only a fraction of the data can run faster because there is less data to scan. Another
    situation is our table records can be grouped easily, for example, there is a column named year to store information about product release date, at this time, we can partition the table into filegroups to improve the query performance. Usually, we perform
    both of methods together. Additionally, we can add index to table to improve the query performance. For more detail information, please refer to the following document:
    Partitioning:
    http://msdn.microsoft.com/en-us/library/ms178148.aspx
    CREATE INDEX (Transact-SQL):
    http://msdn.microsoft.com/en-us/library/ms188783.aspx
    TechNet
    Subscriber Support 
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Allen Li
    TechNet Community Support

  • Automate creating single PDF file from multiple documents

    Hi everyone ! I am testing the Adobe XI version, especially because I need it for a very specific function.I haven't found it yet, maybe you guys can help ?
    Basically, I need to make a user friendly system, that in one click will create a single PDF document from multiple files :
    To be more precise : I have in a folder on the network 25 different documents (Word and PDF mainly). Some of these documents change weekly. What I need as an end result is a single PDF, that combines these 25 ones in a specific order, and the tricky part is I need to automate this so that someone with absolutely no knowledge of Acrobat can perform this task, with just a click.
    I have found of course the procedure to manually build such a combined PDF, but as you can see it does not fulfil my needs.
    So that's it, as simple as that
    As a bonus question : I am still struggling with the construction of these documents : in the Word documents I use, there are both internal links within the document, and links between the documents (pointing to other Word files, or PDF files). I keep losing those links when I combine, is there something I am missing ?
    Second bonus question : I would like to have multiple levels of signets, but for some reason all my signets are at the same hierarchical level. Anything I am doing wrong ?
    A free electronic doughnut for anyone giving me a hint !

    When you combine you have many PDFs together in one, new PDF.  Your orignal links are from one specific file to another specific file. A combine does not change the link in the original file. So the link is now from the  PDFcombined  to the second specific file. However, "second specific file" won't be present - so, "broken link".
    Be well...

  • How do I bind multiple PDF Documents into one single document?

    I am trying to bind multiple PDF documents into one single document can anyone please help me?

    You would need Adobe Acrobat to do that. Reader doesn't have the ability.

  • How to parse multiple xml documents from single buffer

    Hello,
    I am trying to use jaxb 2.0 to parse a buffer which contains multiple xml documents. However, it seems that it is meant to only parse a single document at a time and throws an exception when it gets to the 2nd document.
    Is there a way I can tell jaxb to only parse the first complete document and not fetch the next one out of the buffer? Or what is the most efficient way to separate the buffer into two documents without parsing it manually. If I have to search the buffer for the next document root and then split the buffer, it seems like that defeats the purpose of using jaxb as the parser.
    I am using the Unmarshaller.unmarshall method and the exception I am getting is:
    org.xml.sax.SAXParseException: Illegal character at end of document, &#x3c;.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException(AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:476)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:198)
         at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:167)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:184)
    Thank you for your help

    It's just like any other XML parser, it's only designed to parse one XML document. If you have something that concatenates two XML documents together (that's what your "buffer" sounds like), then stop doing that.

  • Can we create multiple billing document from delivery with single line item

    can we create multiple billing document from delivery with single line item

    Hi
    Please check the link
    [can v create multiple billing document from delivery with single line item]
    and as Lakshmi said, check the forum before posting an issue.
    Regards
    AA

Maybe you are looking for

  • Free Good senario in INdia

    dear all, I want to configure free goods senario for india. Plz explain me the customization for the same . Also what abouty excise in free goods senario. Plz send me the deatils about that. Thx & Regards, PM

  • Problem updating 10.6.8 SWUpdate server to host Lion updates

    Anyone else having problems following the directions in KB article "Mac OS X Server v10.6: Hosting Software Updates for OS X Lion or Lion Server" <http://support.apple.com/kb/HT4771?viewlocale=en_US>? It's basically modifying a plist and a conf file,

  • Problem when upload file

    Hello everybody, i need to upload a file to a server and i use the following code: DiskFileUpload upload=new DiskFileUpload(); List items=upload.parseRequest(request); Iterator itr=items.iterator(); while(itr.hasNext()) { FileItem item=(FileItem)itr.

  • How do I get to this particular menu?

    Hi there, I just bought my first ipod touch. I was just holding it in my hand while music was playing on it, and I was glancing at my computer monitor and reading something. Then I looked back at my ipod and I noticed a menu I had never seen before.

  • Choosing carrier as FI consultant at the age of 33?

    My Name is Jayanth. I am commerce graduate and Have done MBA/MCOM from Sikkim Manipal university which is a distance learning course. I graduated  in the year 2002. As a fresher I joined a Electronic distribution company as a Finance executive. There