Finding suitable indices for a large collection

Hello,
I'm trying to find suitable indices for a large Xml collection.
I'm using a indexed node container. I added a large Xml document (about 450 MB). The schema of the document is like this:
<dbname>
<tablename1>
<row attribute1="attributevalue" attribut2="attributevalue" ... />
<row attribute2="attributevalue" attribut2="attributevalue" ... />
</tablename1>
<tablename2>
<row ......>
</dbname>
One table has got about 5 million entries. I'm not able to query this table, because my system runs out of memory (Windows begins to swap several gigabytes).
Typical queries are : "all rows of a table" and "all rows of a table with attribute=value"
I also tried using lazy queries, but it didn't get better.
The following indices I already added:
- edge-element-presence-none for dbname
- edge-element-presence-none for each tablename
- edge-element-presence-none for row
- edge-attribute-equality-string for attributes I'm trying to query
E.g. I'm trying to get all rows of a table. This is the query plan:
dbxml> queryplan collection("temp.dbxml")/dbname/tablename1/row
<XQuery>
<DbXmlNav>
<LookupIndex container="temp.dbxml">
<PresenceQP index="edge-element-presence-none" operation="eq" parent="tablename1" child="row"/>
</LookupIndex>
<Join type="parent-of-child" return="context_item">
<DbXmlNav>
<LookupIndex container="temp.dbxml">
<PresenceQP index="edge-element-presence-none" operation="eq" parent="dbname" child="tablename1"/>
</LookupIndex>
<Join type="parent-of-child" return="context_item">
<DbXmlNav>
<LookupIndex container="temp.dbxml">
<PresenceQP index="edge-element-presence-none" operation="eq" parent="root:http://www.sleepycat.com/2002/dbxml" child="dbname"/>
</LookupIndex>
<Join type="parent-of-child" return="context_item">
<QueryPlanFunction result="collection" container="temp.dbxml">
<OQPlan>n(P(edge-element-presence-none,=,tablename1.row),P(edge-element-presence-none,=,dbname.tablename1),P(edge-element-presence-none,=,root:http://www.sleepycat.com/2002/dbxml.dbname))</OQPlan>
</QueryPlanFunction>
</Join>
</DbXmlNav>
</Join>
</DbXmlNav>
</Join>
</DbXmlNav>
</XQuery>
When i execute this query (in eager mode), dbxml doesn't gives any response. The swap size is increased several gigabytes and the hard disk is working very hard. The same happens, when I use lazy mode and try to print out the results.
Could anybody please help me to improve the query performance?
Thanks,
Benjamin

Benjamin,
Using lazy evaluation should allow you to get an answer. The upcoming 2.4 release is easier on memory as well and should help.
That said, why are you even using an XML database if you are storing/querying what appears
to be relational data? Mapping relational database tables into a single XML document is going on only slow down access (due to the constraints XML imposes on the data that do not exist in a
relational system).
If you must do such things it's best to map at a finer granularity -- e.g. one table to one document or even one row per document.
Regards,
George

Similar Messages

  • [SOLVED] internal error Cannot find suitable emulator for x86_64

    Hi,
    After a reboot due to unrelated issues, virt-manager is not showing any of the VMs I had configured via qemu:
    I checked connection properties, and everything else is showing up correctly, like the networks and storage. I tried to create new VMs out of existing storage and got this message:
    Googling it suggested this happens when KVM module is not loaded. I modprobed kvm, kvm_intel and still got same result.
    Systemd gave me the following:
    % systemctl status libvirtd
    libvirtd.service - Virtualization daemon
    Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
    Active: active (running) since Sat 2013-06-08 08:55:19 IST; 29min ago
    Main PID: 1499 (libvirtd)
    CGroup: name=systemd:/system/libvirtd.service
    ├─ 834 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
    ├─ 863 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat_static.conf
    ├─ 881 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/closed_dhcp.conf
    └─1499 /usr/bin/libvirtd -p /var/run/libvirtd.pid
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Googling that seems to indicate that this happens when virtualization is disabled by BIOS. But cpuinfo tells me that vm is supported:
    % grep vmx /proc/cpuinfo | uniq -c
    8 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
    Can anyone help me? Has anyone else faced a similar problem?
    Here are some version info:
    local/libvirt 1.0.6-1
    API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
    local/qemu 1.4.2-1
    A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.
    Of which, qemu got updated just today. I will try rolling back to older version and post and update.
    Ninja edit: Looks to be qemu. Just running qemu gives me this error:
    % qemu-system-x86_64
    qemu-system-x86_64: error while loading shared libraries: libiscsi.so.1: cannot open shared object file: No such file or directory
    EDIT: The resolution was
    pacman -S libiscsi libaio
    systemctl restart libvirtd
    EDIT2: Made subject line better searchable
    Last edited by railmaniac (2013-06-08 04:19:24)

    HI,
    First of all thanks a lot for this post. I am facing the same issue since yest.
    After reboot, my VMs gone missing and even virt-manager was not working (as shown in the screenshots which you have pasted in your post).
    Now after trying out the workout which you had mentioned, I am able to get the virt-manager working.
    But I am not sure if I can get back my missing VMs .
    I am new to linux. Kindly guide me on how I can get back those VMs.
    [root@skoduri lib64]# ls /etc/libvirt/qemu/
    networks  rhel6-vm2.xml  rhel6.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]# ls /etc/libvirt/storage/
    autostart  default.xml  storage_1.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]#
    Thanks,
    Soumya

  • Finding suitable apps for old Macbook

    Hello!
      I'm interested in finding games that'll work on my older MacBook Pro.  I've the 2.26 Ghz Intel core 2  Duo. I know that some games offered on the App store are too powerful for this platform.  How do I research, without laboriously examining every software title listed in the app store?  Some listing don't list minimum system requirements, anyway. I don't want to pay and download a game app only to find it won't work. Is there some website that lists games with system requirements?
    Thoughts?  Thanks, Vince.

    This doesn't really answer your question, but children find tablets much easier to use than traditional computers. Even children much younger than your daughter are surprisingly adept with them, and they usually don't need to be taught.

  • How to find suitable ram for my hp pro cpu

    Hi,
    I am using HP Pro cpu with Intel Pentium E5400/2.7 GHz.
    The motherboard here is from Micro Star Intenational Co Ltd of model 0B58h.
    Currently, available ram is 1gb, but i have another unfilled slot.
    The ram details known using CPU-ID software is as follows,
    SlotDR3
    Module Size:1024 Mb
    Max BandwidthC3-10700(667 MHz)
    Manufactureramsung
    Part Number:M378B2873EH1-CH9
    I want to increase my RAM, therefore I want to know what is the maximum RAM capacity I can go for and
    which RAM specfications is compatible for my CPU
    Kindly assist me in this.
    Thanks and Regards
    Krish

    Hi,
    There are few ways but quick and easy: please use the following site to scan your machine. It will tell you exactly what you need and where to buy or you can also use the information to buy elsewhere:
        http://www.crucial.com/usa/en/systemscanner
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to find Explain Plan for a large querry which has multiple sub querries

    Hi All,
    I have a Package which has many procedures and one of the procedure has a cursor which is like 2000 lines. This cursor has a main select statement which again has many select statements in it.
    Now how do I do the explain plan for the main select statement?
    If it can be done easier way in toad(or SQLPLUS), please tell me...

    When your query takes too long ...

  • Where to find 'Exempt' indicator for reporting using ad-hoc query?

    I want to run report for a count of exempt and non-exempt employees using ad-hoc query with logical database PNPCE. We maintain the exempt/non-exempt flag on the job.
    Thanks
    Manish

    To meet this exact same requirement at my company.  I added an additional table (T5U13) into the logical database. Within transaction SQ02, go to the field group Organizational Assignment, right-click on the field group.  Click Node Extras.  Click Create icon over on the right-hand side of the screen.  Type in the table name T5U13.  Use this select statement:
    SELECT SINGLE * FROM T5U13              
      WHERE STELL                = P0001-STELL
        AND ENDDA                = P0001-ENDDA
    Then add the fields into your field groups.  I also created a local field so I get the word "Exempt" or "Non-Exempt" in my queries instead of "1" or "2" because i can never remember which is which. 
    Hope this helps!

  • Where can i find Display drivers for Portege 3480CT?

    My Portege 3480 CT has been reloaded with ME after problems with Windows XP. Now i cant find suitable drivers for the Display wich only starts in 16 colour mode with a extremely small screene. I can not find any suitable drivers for my notebook except an update of BIOS on Toshibas homepage. Is my Notebook to old? I think its 5 years.
    /Conny Bron

    Hi Conny
    Win ME was never a supported OS on this model. Try either the Win98 or Win2000 driver. You might have to 'force' the driver into the system.
    Good luck
    Tom

  • Incoming Email for a site collection larger than 25GB

    Hello,
    Incoming emails on a site collection not getting to document library. It stays in drop folder. Uls logs shows below message:
    The Incoming E-Mail service has completed a batch. The elapsed time was 00:00:00. The service processed 2 message(s) in total. Errors occurred processing 2 message(s): Message ID: Message ID: 0511e09c-fe1b-d07e-a534-adcbf7e5cfbe.
    I have researched but haven't found anything. Incoming email works for other site collections in the farm with smaller size compare to that is not working. Site collection that is not receiving incoming email is size larger than 25G. There is no size
    quota restriction.
    Is there any restriction for incoming email for site collection larger than 25G?
    Thanks,
    Hp

    try these links it may be useful:
    https://social.technet.microsoft.com/Forums/office/en-US/510a203e-6ed9-436e-a8d4-f7daaf0e6adb/problem-with-incoming-emails?forum=sharepointadminlegacy
    https://social.technet.microsoft.com/Forums/office/en-US/1e6cf316-ca56-4d9e-a778-938deca5b283/incoming-email-problem-mail-in-drop-and-mailbox-folder-but-not-in-list?forum=sharepointadminlegacy
    http://blogs.technet.com/b/praveenh/archive/2012/06/28/unable-to-send-emails-to-lists-and-document-libraries-in-sharepoint-2010.aspx
    http://serverfault.com/questions/37018/unknown-alias-error-with-sharepoint-incoming-e-mail
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing

  • HT1386 hi, when i am syn my books from my mac to ipad even after one full day sync itunes show wait for items to copy and the books in ipad are still not fully loaded. how do i fix this, i have a large collection of books

    hi, when i am sync my books from my mac to ipad even after 24 hours sync, itunes show "wait for items to copy" and the books in ipad are still not fully loaded.
    how do i fix this, i have a large collection of books around 12000 books

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • RT: Remote desktop says "can't find a suitable device for drive C"

    Hello,
    there is a french post on exactly the same topic, but I can't apply the solution given there.
    My problem is the following: I have a remote desktop prepared to work as RT target. It has been checked for compatibility, the hard drive has been formatted in FAT32 format, it has been found by my host and has been assigned a static ip address. I have installed the software I need ( LabView 9.0 RT) using MAX. Now, when I try to boot it with the option "boot using software installed into the hard drive", all I get is the message
    "Can't find a suitable device for drive C"
    I have reseted the BIOS, have tried formatting the hard drive in the other format, uninstalled and reinstalled the software, tried to start the target pc without the usb stick, but nothing seems to work.
    Do you have any ideas about what is going wrong?
    Thank you,
    Samuel
    Solved!
    Go to Solution.

    So you've got a IDE (and not SATA) hard drive? That should be supported anyway.
    That would only confirm my experience... it's hard to find hardware compatible with LV RT. Before buying you cannot know if it's compatible. Once you have it the evaluation tool might tell you it's supported but still it might not work. I tried several motherboards in the last years, most of them did not work.
    Your best bet might be to use relatively old hardware.

  • How to find suitable( existing) function group for a Function Module ?

    How to find suitable( existing) function group for a Function Module to be created?
    This is FM for converting amounts to text.

    Hi,
            If you are not sure into which Function group your FM should go in then its advised to create a Function group of your own. Its not advised to create a function module in any other function group unless its owned by you since your FM can get deleted by others or it can get changed.
    Create your own Function group. But if you want to create in an existing FG then best way is to find out the Function Group by searching for suitable existing Function module then see their function group
    Regards,
    Sesh

  • Unable to find moniker information for archive collection ArchiveCollection

    In attempting to setup archive transfer between PROD and DEV I needed to rename an existing outgoing provider and the only way I found I could do this is to delete the existing provider and recreate it with a new name. I think by doing this it has caused and issue and now the CS log displays an error similar to below:
    Unable to find moniker information for archive collection ArchiveCollections. The collection ecmprd2 has no information associated with it. It no longer exists in the system. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !csMonikerUnableToFindArchiveInfo,ArchiveCollections!csArchiverCollectionNotFound,ecmprd2
    intradoc.data.DataException: !csArchiverCollectionNotFound,ecmprd2
         at intradoc.server.archive.ArchiveUtils.getCollection(ArchiveUtils.java:492)
         at intradoc.server.MonikerWatcher.parseMonikerInfo(MonikerWatcher.java:325)
         at intradoc.server.MonikerWatcher.computeMonikers(MonikerWatcher.java:248)
         at intradoc.server.MonikerWatcher.notifyWatched(MonikerWatcher.java:154)
         at intradoc.server.Service.notifyWatched(Service.java:710)
         at intradoc.server.Service.updateSubjectInformation(Service.java:670)
         at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1128)
         at intradoc.server.Service.executeActions(Service.java:433)
         at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:635)
         at intradoc.server.Service.doRequest(Service.java:1707)
         at intradoc.server.ServiceManager.processCommand(ServiceManager.java:359)
         at intradoc.server.IdcServerThread.run(IdcServerThread.java:197)
    Does anyone know if this is caused by deleting the existing outgoing provider and if it is how can I resolve it?
    Regards,
    Andrew

    I misspoke when I said to recreate the outgoing provider because an outgoing provider only provides the "connection" from DEV to PROD. What I meant is that if the provider is deleted and the automated archives are left alone, they would fail because that connection is gone. Since you recreated an outgoing provider (even with a different name), that connection should be there again.
    I highly doubt each archive "stores" the name of the outgoing provider in its configuration, so I doubt either of those options would work. The only thing that makes sense is that the collection is "gone" (ie. DEV cannot find 'ecmprd2') or the PROD collection isn't called 'ecmprd2' anymore. I'm assuming "ecmprd2" is the instance name of your PROD instance, right? If you can, try deleting all archives and see if the error exists afterwards.
    Why did you have to "rename" the provider to begin with?

  • I can not find a suitable driver for my hp deskjet 1280 for OS X 10.7 Lion (macbook) Please help.

    I can not find a suitable driver for my hp deskjet 1280 for os x 10.7.  Since updating my software the printer will only use basic functions and prints only black and white, how do I enable the printers full capabilities? Thanks!

    Hi,Officially the printer no longer supported on OS X 10.6 or above, therefore the reduced quality due the Generic driver usage:
    http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&task Id=120&prodSeriesId=439162&prodTypeId=18972&prodSeriesId=439162&objectID=c018563 59
    However, you may try the 3rd party HPIJS print drivers which list your printer as supported and will more likely provide you a better qualiity then a Generic driver.
    Be sure to install any of the 3 required downloads and follow the steps to Set Up the printer:
    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs
    Shlomi

  • Large Collection, Re-Adding Music Folder . . . Best Practice?

    My wife and I have a very large collection of music that we have been trying to incorporate into a single library for our laptops to use. I think I have it mostly figured out for sharing a library (found an article about using synctoy in Windows to essentially mirror the libraries from a shared network drive while using the same physical copy of music files on a network drive. This seems to be working so far, but...
    In the process I have been moving from having a mirrored copy of music on each laptop (via an external USB drive on each laptop) to consolidating that into one music folder on the networked drive. I've got it just about complete but I ran an xcopy script again to ensure all music files from those drives really made it in entirety to the networked drive AFTER adding folder to library in iTunes. Now of course iTunes doesn't know those new files are there and they are all over the place, not in just one directory.
    Now the question, if I select add folder to library in iTunes again selecting the entire music folder so it will pick up those new files, will it create duplicate entries in iTunes? Or should this work ok?
    Is there an easier way to do this?

    I think it will not add duplicates. It might if you also tell iTunes to add music to the iTunes library as well. Here is my tip and what I do.
    I make a music library folder called "Music Library", in there I store my music via artists (each in their own folder), and then albums in sub folders. I name the folders exactly as they are embedded in the mp3. I know this is not necessary but that's just me. For my compilation music I have a folders called compilations and again the albums are stored in sub folders named after the album.
    I also name every file with the track, artist and title (I use mp3Tag for this) so every track on my system looks something like this
    "01 The Who - I'm A Man.mp3"
    Now I use iTunes to get encode and get track info but that's it, I then do the renaming manually.
    Now that I have all this done and backed up on DVD's I can move, reload etc etc when I want to. I have it all on external hard drives as well.
    So finally I ensure that my iTunes default library folder is always empty, that way whenever I delete all or part of "My" library iTunes does not ask me if I want to delete them from the hard drive.
    Manually adding the top level folder to iTunes does not duplicate anything. I regularly delete my library and reinstall it. This does not take long, I also save playlists and import them back as well.
    Letting iTunes organise your music is OK for some but not me, for one thing it does not add the artist to the actual filename, crazy if you ask me, specially if you want to do other things with the files. Of course Apple does not want you to do other things with your music.
    If you look on this forum at posts relating to iTunes has deleted my music, or all my files are missing or iTunes can't find my music, I bet that the people all let iTunes manage their music library and turn on the sync function. I used to have some of these issues but not anymore. I deleted files from my hard drive twice by accident, and I'm an experienced computer user. Now I'm 100% trouble free thanks to doing things manually and making my own music folder.
    Message was edited by: Stubchain

  • CO07 and special stock indicator for components

    Hello,
    My final purpose is to be able to call components from project stock in production orders without header material, created in CO07.
    I notice a strange behavior and would be glad to recieve some explanations.
    Production orders are assigned to a WBS. If I indicate the WBS in the CO07 selection screen, the special stock indicator for the components is determined as expected:
    If view MRP 4 for the component says "Individual requirements" then special stock indicator is set to "Project stock"
    If view MRP 4 for the component says "Collective requirements" then special stock indicator is set to "Common stock"
    Second scenario is that I don't provide the WBS in the CO07 selection screen, but provide it in the assignment tab later. In this case, the special stock indicator for components will always be empty (common stock) by default, without any possibility to modify this manually.
    Is anybody able to explain me why?
    Merry Christmas to all.

    Hi!
    Actually it is not related to SAP Manufacuting Execution solution - so you'd rather re-post the question to ERP-related forum. This can help you find a proper one.
    Regards,
    Sergiy

Maybe you are looking for

  • Possible hard drive problem with MacBook Pro? PLEASE HELP!!!

    MacBook Pro loads to login screen with my personal account (which shows a grey silhouette) my student account(shows custom pic) and guest account(same grey silhouette) there is no feedback when I click on anything. I have restarted it multiple times

  • Relative value in Crosstab in Business Objects WebI

    Hi All, I have an Cross tab report where I need to compare between Current Year data and Previous Year data. My table structure is like below:        2012 2013 CY vs PY US 100 150  UK 250 230  AUS 140 150  Now, whenever I am trying to calculate Previ

  • Exporting to HD with FCE

    Please help! I have a 55 min project that I am attempting to export to HD and have had no success at all. Exported file is extremely grainy. Then I followed a youtube tutorial to change some settings. File now is better, still a little grainy, but th

  • DB Very Slow

    Hi, My Database is very, very slow. Maybe this problem is with Undo Tablespace. This have 15GB, i'm shutting down the DB but is very slow to do this. Have some view to me see where is the problem? Thankyou for all

  • MRP not running with MD01

    Hi Gurus, My client has a problem, MRP is running OK with MD02 and MD03 tansactions but no materials are planned when MRP is run through MD01at plant level. Can anybody throw some light what could be the problem? There is no error message either. Tha