Need a way to speed up the initial population of the entire BDB

We are transitioning an existing production system from flat file based DB to BDB. On the day we switch to BDB, we have to populate the BDB for more than 2 Million users. Once we populate, BDB serves the data vary adequately.
However, the initial population is very slow. For some users with large set of keys, it takes up to 30 minutes. Just the thought of server keeling over creating the initail DB for all these users is keeping me awake at nights :-) I was wondering if there are any known tricks I can use to speed up this initial population.
One thing that comes to mind is, disable BDB caching as we don't need to cache any entries during population. Is this possible? Profiler reports that BDB is spending the maximum time in eviction (Specifically xxx.tree.BIN.getChildEvictionType method).
Does use of transaction or no transactions affect this use case?
I have all the objects to put in DB in-memory. Is there some batch-put I can do to speed the operation?
Highly appreciate any response.
Cheers!

Hi,
I will try deferredWrite mode next. Good, I think it's worth trying. The DeferredWrite mode was originally added as a way to speed up database loading.
Is it possible for me to avoid opening secondary
database until after the full population of the
primary database? Yes. See the SecondaryConfig.setAllowPopulate method. You can use this you load your database as follows:
1) Open the primary DB (openDatabase) but do not open any secondary DBs (openSecondaryDatabase).
2) Load all records into the primary DB.
3) Create a SecondaryConfig and call setAllowPopulate(true). Use this config object to call openSecondaryDatabase.
Note that when opening a secondary DB with AllowPopulate, the secondary DB will be populated only if it is initially empty or non-existent. It is populate by reading the entire primary DB and writing secondary key records as necessary.
Also, even though we started out with entire load
in-memory before population, we had to abandon that
approach because of enormous memory constraint it put
on the system. However data is being generated from
walking a directory structure. Is there any thing I
can do there (depth first vs breadth first search)
that will help BDB do the inserts faster?Presorting the input records by primary key will provide a significant performance increase. If you can't presort them all, it will still help a lot to presort a subset at a time. In other words, trying loading them into memory in batches, where the size of the batch is determined by available memory. After loading a batch into memory, presort it, and then insert the records in sorted order into the JE database.
Thanks as always. You guys are doing such a great job
answering questions and providing support.You're welcome! (on my and Linda's behalf)
--mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • How can I set the initial state of the PGCTR0 out pin?

    Hi,
    I have a 6115 board, and I am trying to generate a pulse train on PGCTR0 with an external clock. The external clock signal is connected to PFI1 and the PGCTR0 is gated through PFI0. The PGCTR is reset at the end of each run.
    The problem is that the initial state of the PGCTR out pin changes from run to run, but I'd like it to stay high after reset. Any help is appreciated. THanks.
    feng

    Hi Feng,
    The default output state of your counters should be high depending on your board. If you run a counter application, and the line ends in a low state it will stay low. One way to change the output state is to not only reset the counter but reset the board (see knowledge base linked below). The other way is to treat it like a digital line (see second link below). This is probably the best method. This method should allow you to read the value and change it using a couple software calls. Instead of disabling the counter, I would reset the counter since you just want to reset the state. This method is also a decent workaround because you are resetting the counter anyway. Hope that helps. Have a good day.
    Default State of Counter Output Lines
    on E Series Data Acquisition Devices
    http://digital.ni.com/public.nsf/websearch/008995633E33E47486256B5F00034436?OpenDocument
    Using the General Purpose Counter (GPCTR) on the Data Acquisition (DAQ) Device as a Digital Line http://digital.ni.com/public.nsf/websearch/B8A49A4E33F38AB686256B610061DC6D?OpenDocument
    Ron

  • XEM - Unable to load the initial data or the variances(delta) data into sys

    I am installing xEM 2.0 SP 10 (SAP xApp Emissions Management) in a windows environment with SQL 5000.  I installed xEM on NW 2004, usage types AS Java and EP 6.
    I am attempting to load the initial data or the variances (delta) data into the system.  Instruction is on page 15 in the install guide.
    I am supposed to enter the following in the command line:
    java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=[JDBC Driver];[JDBCUrl];[User];[Password]
    Example command for import into SQL Server:
    java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddtek.jdbc.sqlserver.SQLServerDriver; jdbc:datadirect:sqlserver://vma03:1433;SAPC11DB;password
    The customer I am with is running the xEM database on a different instance.  This is where I run into a problem.  I am not sure how to specify the instance in the script.  This is what  I have attempted so far:
    C:\>cd temp\load
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:SQL3:1534;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:SQL3:1534 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unable to connect.  Inva
    lid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:SQL3:1534 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unab
    le to connect.  Invalid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43;SQL3:1534;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43 as user SQL3:1534 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Error establishing socket. Connec
    tion refused: connect): [DataDirect][SQLServer JDBC Driver]Error establishing socket. Connection refused: connect
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43 as user SQL3:1534 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Error establi
    shing socket. Connection refused: connect): [DataDirect][SQLServer JDBC Driver]Error establishing socket. Connection ref
    used: connect
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:1534;SQL3;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:1534 as user SQL3 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user
    'SQL3'.): [DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user 'SQL3'.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:1534 as user SQL3 (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver][SQLServer]Lo
    gin failed for user 'SQL3'.): [DataDirect][SQLServer JDBC Driver][SQLServer]Login failed for user 'SQL3'.
    C:\Temp\load>java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddte
    k.jdbc.sqlserver.SQLServerDriver;jdbc:datadirect:sqlserver://PRODSQL43:1534:SQL3;SAPPEMDB;password
    java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:datadirect:sqlserver:/
    /PRODSQL43:1534:SQL3 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unable to connect.  Inva
    lid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
            at com.sap.sdm.util.dbaccess.DBTask.dbImport(DBTask.java:356)
            at com.sap.sdm.util.dbaccess.SapTransTask.perform_import(SapTransTask.java:293)
            at com.sap.sdm.util.dbaccess.SapTransTask.execute(SapTransTask.java:51)
            at com.sap.sdm.util.dbaccess.SapTrans.main(SapTrans.java:21)
    import aborted with java.lang.Exception: ERROR: Cannot connect to the database:ERROR: Connect failed to database jdbc:da
    tadirect:sqlserver://PRODSQL43:1534:SQL3 as user SAPPEMDB (java.sql.SQLException/[DataDirect][SQLServer JDBC Driver]Unab
    le to connect.  Invalid URL.): [DataDirect][SQLServer JDBC Driver]Unable to connect.  Invalid URL.
    C:\Temp\load>
    My last attempt was a command using colons and semicolons with the following results.  The closest (there was a significant delay before the error or failure) appears to have been //PRODSQL43;SQL3:1534; (second attempt).  The error listed from this attempt is   "Error establishing socket. Connection refused: connect".
    I also checked the default database that user SAPPEMDB has in place and it is assign the correct database.
    Please help.
    Message was edited by: Owner
            Mike Smayrabunya

    Hey,
    It looks like one of the following:
    1. The DB is down,
    2. The user SAPPEMDB does not have the right authorization.
    3. The password of the user SAPPEMDB is not password
    4. The syntax is incorrect
    in order to find what is the problem,
    please:
    1. Login in the the DB PRODSQL43:1534 with the user "SAPPEMDB" and the password "password",
    this will eliminate the options 1 - DB down, 2 -SAPPEMDB does not have authorization and 3 - password of the user SAPPEMDB is not password.
    2. If the login failed, than please run sql trace with security elements (in the client there is a tool called "SQL Profiler"
    3. If the login is correct, than you check the syntax of the command:
    "java -Djava.ext.dirs=. -jar SAPtrans.jar import logfile=import.log datafile=init.dat connectstring=com.ddtek.jdbc.sqlserver.SQLServerDriver; jdbc:datadirect:sqlserver://vma03:1433;SAPC11DB;password"
    According to the error message "Error establishing socket. Connection refused"
    it looks like The DB is down or syntax is incorrect.

  • How can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    how can i view nikon images in photoshop? i have cs4 so the camera raw plug-in is not an option and i've lost my disk from the initial purchase of the D90.

    The NEF file only gives a little "nef" icon.  i was able to convert the NEF to DNG on the old computer and then brought the files over to the new computer.  On the old computer, the NEF files were depicted as little jpeg's so I would be able to see a picture of what each file represented.  On the new computer, both the NEF files and the DNG files are depicted with icons, "nef" or "dng", but not as little pictures.  On the new computer, though, I am to import the DNG's into Adobe and edit them so that is working regardless of whether or not a picture is present for the icon of each file.  I've downloaded the DNG converter from Adobe and will try the conversion directly on the new computer when I get home from work.  I do appreciate your responses and will let you know how it works.
    I am curious then, since right now the files are represented by little "nef"'s and little "dng"'s: If I also download the viewNX (spelling might be wrong, sorry) from nikon, do you know if that maintains the file as a RAW format file but allows a picture representation of the RAW file for the icon?  (That would make it easier to choose which RAW files I would choose to edit and which to not even bother with as an initial culling if that makes sense.
    Cheers.

  • ¿how do it the initial charge of the battery for the ipad 2?

    ¿how do it the initial charge of the battery for the ipad 2?

    How ... I use the original charge until completion or by 100% before starting to use it? If I use it with the initial charge until it is complete, then I must leave off a while before putting it to reload

  • Revoke the initial version of the site after being modified and saved

    Hi All,
    I have modified an existing site present in SharePoint2010 and saved it. Now I want to get back to the initial site content.
    Is there anyway I can revoke the original site?
    Thanks in advance!

    Hi,
    Just in case you need, I find some references about reset to site definition:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1ca8c1e9-536b-4334-80d5-b44bf28d5b34/sharepoint-2010-reset-to-site-definition?forum=sharepointgeneralprevious
    https://support.office.microsoft.com/en-us/article/Reset-a-customized-page-to-the-site-definition-27a748e8-3787-4159-a8e6-ed29ca2b2e8f?CorrelationId=d70ef0fe-6a38-48d1-bb67-9e2295059dd0&ui=en-US&rs=en-US&ad=US
    For example, you might want to reset to the site definition when:
    Your customizations don't turn out as well as you had hoped. For example, although the customizations might look how you want, some important functionality in the master page was accidentally removed.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How can I change the initial value of the field approve_or_reject?

    Hello Workflow Gurus
    We are using SRM 5.00(SRM SERVER 550) and as per the requirement, I have to make the Reject radio button as default checked on the Approver's screen.
    We are using the SAP Standard Workflow WS14500015.
    I found out the Standard task TS14508044 (SC approval per Item)which has one field in its container i.e. approve_or_reject ,based on the Initial value of this field , the radio button is behaving...
    approve_or_reject EQ 0 i.e. Approve
    approve_or_reject EQ 1 i.e. Reject
    Now my requirement is to change the initial value of this field from 0 to 1 so that Reject radio button comes as checked by default into this standard SAP workflow task TS 14508044...
    Kindly help me and let me know the procedure to change this.
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE CHANGES INTO STANDARD SAP WORKFLOW ???
    Thanks and regards
    Ankur Goyal
    09823448654

    Well Iam not much sure about how you are trying to approve the shopping cart workitem b ut last week i faced a similar issue while apporving the workitems I was able to update the contianer element Apporve_or_reject element by using the FM BBP_PDH_WFL_WI_APPROVE and BBP_PDH_WFL_WI_REJECT ... These two fm will take the responsibility of updating the element with respective value as, if you approve the it will be populated with 0 and if you reject the the element will be updated with 1....
    Please check the thread where I updated the thread in [SRM Workflows|Problem while approving SC from Blackberry !;
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE
    CHANGES INTO STANDARD SAP WORKFLOW ???
    Modifying the standard workflow is not recommended.....

  • IPhone 6 will not connect to itunes on the initial setup of the phone.

    Once the sim card has been inserted, the iPhone asks to be restored from a backup on itunes and asks to be connected the the itunes account. Once connected the phone makes the connected noise and begins to charge, however the image saying "connect to itunes" stays on screen. The itunes on the pc also doesnt recognise the phone and the next stage of the initial setup cannot take place.
    any ideas on what to do to solve this problem?

    You are in recovery mode.  Follow the directions in this link EXACTLY as written:
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support

  • HT201239 I dont have the option to add a card and in the settings there is no Passport optionI made the initial setting outside the Us but mi adress credit card an tlf number are from the Us

    I cant add a credit card to Passbook on the app or in setting I'am in the Us mi account has a Us adress my credit card is from the Us and mi telephone line is also Us but the first time I used the phone was outside the country how can I fix the problem?

    I had to turn on location services for passbook before mine would show up.
    Settings>Privacy>Location Services>Passbook
    once I allowed location services for passbook I could add cards, etc. I was able to turn location services off after a card was added and the passbook option still showed up under general settings
    Hope this helps. It took me hours to figure it out

  • Different ways to get the initial context within the container

    Hi there,
    Simple question concerning WLS61:
    Is there a difference between getting the context like this:
    Context ctx = T3Services.getT3Services().name().getInitialContext();
    and getting it like:
    Context ctx = new InitialContext();
    The only difference I see is that the second version is portable.
    Is there a performance difference?
    Thanks
    Juerg

    Hi Floris,
    You can also use RANK: http://www.dba-oracle.com/oracle_news/oracle_faq/faq_beg_sql_top_n_rows.htm
    Regards Pete

  • My macbook pro is slowing down!what is the best way to speed it up?what is the best drive cleaner application i can use?

    my macbook pro is slowing down!i was looking for drive cleaning applications bau i couldn't decide which one is more useful!

    There are NO applications that will make your MBP run faster.  At best they will have no effect, at worst they will create more problems.
    Start with this comprehensive trouble shooting document.
    https://discussions.apple.com/docs/DOC-3521
    Pay particular attention to the Hard Drive and third party applications.
    Ciao.

  • How to find the initializing class (ie the one whose main was called)

    I am wanting to find out, within a class instance, which class caused it to be initialized. ie the one whose main was called.
    NOTE
    I do not nessasarily mean the class which initialised it, but the class whose main was called, which started the ball rolling and somwhere along the line this class was initialized.
    I am normally a Swing man and my initial class has always been a Frame, and it is easy to find the Frame, within a subsequent Component, using
    Component component = this;
    while((component != null) && !(component instanceof java.awt.Frame))
    component = component.getParent();
    Frame myFrame = (Frame)component;
    I just can't see a way to do this for classes

    Another way that you might be able to do it is to throw an exception and catch it put the stack trace in a string so that you can search it for a <classname>.main for example below the class SnippetRunner47882's main was called.
    Example StackTrace:
    java.lang.NullPointerException: just a test
         at SnippetRunner47882.runSnippet(SnippetRunner47882.java:8)
         at SnippetRunner47882.main(SnippetRunner47882.java:18)
         at java.lang.reflect.Method.invoke(Native Method)
         at SnippetRunner.compileAndRun(SnippetRunner.java:120)
         at SnippetRunner.runSnippet(SnippetRunner.java:87)
         at SnippetRunner.actionPerformed(SnippetRunner.java:69)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Hope this helps

  • The URL does not change in the address bar, it always shows the initial URL of the project.

    Is it possible to show the exact link when a topic is opened? I only found a workaround by opening the topic in a new tab, clicking the show ToC option and copying the link, but I would not suggest that method to our customers.

    Have a look at this thread & its references - http://forums.adobe.com/message/6138628#6138628

  • Styling the initial loading of the flex app.

    Any thoughts on how I would do this?

    I would suggest using a preloader in this case, something that blends nicely with the current webpage it is embedded within.
    Basically, a preloader is a small, fast loading, Flash movie that runs while the main application is downloading and initialising.
    Plenty of excellent articles/examples on the 'net.
    Cheers
    Ian

Maybe you are looking for

  • Converting multiple bmp files to PDF using acrobat 7.0 from DOS prompt

    Hi, I have a requirement to convert multiple BMP files in a folder to one PDF. I can use multiple file conversion option in acrobat to combine and convert them to one PDF .. but I have 2000 such folder to conver to PDF. PDF should be name after the f

  • Questions about connection from JDeveloper to BAM 11g TP4

    1. Is it possible to connect from JDeveloper 10.1.3.x to BAM 11g TP4? If yes, is the domain name obligatory for connection? 2. Is it possible to connect from JDeveloper 11g TP4 (on remote machine) to BAM 11g TP4? Thank you for answers Edited by: Olga

  • Create new text file in UTF-8 format by default

    I'm working a lot with UTF-8 text files and mainly in this format. It's becoming annoying when I have to manually save every text file as UTF-8.  After several trial-and-errors, I've made up a procedure that I've put in a blog. I think I could share

  • Movie wont play on ipad, URL not found.

    Whenever I try to play a movie on my ipad2 it says the URL can not be found. It's only one movie and one tv show.

  • Library issue with weblogic

    Hello, I have installed weblogic 10.3.4 and ADF 11.1.1.4 on my solaris server and I have 4 war files and an ear file which I am trying to deploy on the server. I have copied some libraries in the lib folder at the domain level : /Oracle/Middleware/us