How can I treat many tables with one handler(?) ?

Hello~
I am applying BDB to my embbeded system not rich in resource.
Some *.db files are called frequently.
But, Opening a *.db file [db_create(&dbp, NULL, 0) AND dbp->open] takes a long time in BDB
So, I loaded this functions onto a booting module to call opening functions just one time.
And all D/B handlers(?) are loaded in all run time
But, a D/B handler takes about 360Kbytes. And there are too many *.db files(10) where a table is
How can I treat many tables with one handler(?) ?
Or
If you have the most efficient way to call openning functions just one time, please tell me
Thank you

Hello,
Opening the database handles is expensive due to
opening a file on disk. Is it possible for the application
to use in-memory dbs? Otherwise is there a way for the application
to cache the DB handles and reduce the overhead associated with
opening and closing them?
Thank you,
Sandra

Similar Messages

  • How can I associate 2 appleids with one account or use a different Appleid for imessage as described in another post?

    How can I associate 2 appleids with one account or use a different Appleid for imessage as described in another post?
    I have rejoined the iPhone community, not with one iPhone but with two. My wife agreed to move from the unenlightened!
    I have set up both under my apple account and want to keep it that way. But I do not want iMessages going to both phones. I would like separate message queues but share all apps and other purches from the store.
    I have created a separate AppleID for her but under Settings>Message>Receive At (it currently says 2 addresses) > ... will not allow me to change the current eMail address and when I add hers (her appleid) it errors out. The only thing I can do in the Apple ID field is to manage my account and not change it to hers.
    How can I have 2 iPhones (and my iPad) on the same account but have separate identies?
    Thanks,
    LpGrumpy

    1. Yes. Restart with the Option key held down as needed.
    2. No, it won't be a problem.
    (83373)

  • How Can I obtain the tables of one schema and the record size???

    How Can I obtain the tables of one schema and the record size???
    Example:
    TableName Record Size
    Tabla1 12500
    Tabla2 7800
    Tabla3 2046

    This is not an OWB question, but you can obtain bda-type information on tables by using the system view dba_tables.
    Regards:
    Igor

  • How can i creat several rectangles with one draw rect.vi

    how can i creat several rectangles with one draw rect.vi? thanks
    Solved!
    Go to Solution.

    You can call it in a for loop, with an array of the rectangle coordinates you want to draw. Is this what you mean?
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    rectangle.png ‏11 KB

  • How can I open many files in one window?

    how can I open many files in one window?

    Well when i do that, the fonts kinda stays whereas the size of the poster shrinks.
    But thanks for the help

  • How Can I Export A Table With Its Entries ( values )

    Hi guys,
    How can i export a table with the entries that the table is populated with ??!!
    Best Regards,
    Fateh

    To export a table and its data you can do it a number of ways.. Do you have access to SQL Developer? If not you can do it through the APEX SQL Workshop..
    Under SQL Workshop, Utilities, Data Unload, To text (or XML, whichever you are more comfortable with..).. Select your schema, click next button, select the table, click next, select the columns you want exported (select ALL ITEMS in the select List), click next, on optionally enclosed by I usually enter a " (Sometimes I have long strings in columns), click the include column names checkbox to get the column names at the top of the document, click unload data button..
    To get the ddl (code to build table) Sql Workshop, utilities, generate ddl, create script, select schema, select next, click table checkbox, select next, click the checkbox of table you want to get ddl for...
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How can I build a table with the time values of a timer from a while loop

    Hi:
    I have a question concerning building a table:
    Every 100ms I read a value from a sensor (while loop with a timer). I would like to build a table with the actual time and the concerning value. For example:
    0msec         1V
    100msec     2V
    200msec     3V
    300msec     4V
    etc.
    If I use the Express VI for building a table, I always get the date and time, but I don't need the date and the time is in the following format: HH:MMS, which is nonsensical for me as I can't differentiate within msec. Can I change the format anywhere?
    Can I also save the table to a file or even to an Excelsheet? How can I do that?
    Thanks for your help!

    Hi Craig:
    thank you very much. To solve the mystery : ) :
    I want to drive a stepper motor with a specific frequency. To get the current degree value of the motor I would like to measure the current time (from the beginning of the move on). (With a formula I get the degree value out of the time)
    Concurrently I would like to get data from a torque sensor and from a pressure sensor. That's why I asked you about the time and the table. The measurement should start with the movement of the motor. How can I do that? Right now I have different block diagrams (different while loops) (see attachment) and I would like to put them in one.
    I haven't done the block diagram for the pressure sensor yet, so there is only the one for the torque sensor and the one for the motor.
    I also would like to set a mark in the table when the voltage value of an analog input gets under a specific threshold value. Is that possible?
    I'm sorry, I'm a novice in LabVIEW. But maybe you can help me.
    Thank you very much!
    Steffi
    Attachments:
    motor.vi ‏238 KB
    sensor.vi ‏59 KB

  • I asked a question about organizing bookmarks in my toolbar bookmark. I'm not happy with the "help" I got. I'm very frustrated. I need to talk to a technician. How can I get in touch with one? Do you have contact information?

    Can't find out how to organize my bookmarks. can't do it after updating. Person tried to help, we had long conversations, I sent lots of images, it got to where I think the answer given were not related to the problem. I asked for help from a technician or to give my emails to one. She won't do it and I can't get help. So I'm starting over. It shouldn't be this hard. I need someone else to help me.

    re: How do I organize and delete bookmarks in my short toolbar list.
    * https://support.mozilla.com/en-US/questions/884877
    You say you have a lot of duplicate bookmarks, and want to know how to organize bookmarks, but from the pictures shown, I really only see a news subscription, some sample bookmarks in the bookmarks toolbar that you don't display on the toolbars so I don't see point in deleting anything there most of it are reports from the database or from a news subscription nothing of much concern, really. I would dump the news subscription if you don't use it.
    How do you want to arrange your bookmarks, but you must keep within some boundaries of what was expected of the three major folders.
    Bookmarks Menu -- this is your folder categorized bookmarks, originally all bookmarks were in this folder and the bookmarks toolbar was one folder within -- that has changed.
    Bookmarks Toolbar -- intended to be visible on the toolbar with main bookmarks and folders spread out horizontally to save one level of drilling down into folders, with very few bookmarks and folders visible on the toolbar but quickly accessed. You can use the bookmarks showing essentially as buttons a few primary bookmarklets. You can have folder structure there so you could actually have thousands of bookmarks there within folders.
    Unsorted Bookmarks (no folders within by intent not by restriction) -- new concept to not categorize bookmarks into folders because of bookmark tagging. Delicious.com will show you what they intended where you have lots of people. I think the concept of tagging breaks down with one person. The other reason bookmarks no longer had to be put into folders was the "AwesomeBar" feature of Firefox that is a great feature it will find bookmarks whatever folder they are in -- I hope you are familiar with it. You can throw bookmark separators into any folder but they are especially useful in the unsorted bookmarks folder, especially if you sort the folder. In other words a group probably within a date range.
    So how do you see yourself categorizing your bookmarks ?
    I'd like to get an idea of '''how many bookmarks '''you have altogether and how big your places.sqlite file is. To find out how many bookmarks you have all together bring up the Bookmarks Library list, place a colon (":") into the search field this will do a find on all of your bookmarks. At the bottom of the library window you will see the total number of bookmarks you may have to nudge the vertical scrollbar down, and as long as no bookmarks are selected you will see an '''item count'''.
    Open your profile folder Help > Troubleshooting information... then click on "Open containing folder" then looking in bookmarkbackups folder and report size of last .json file in there -- hope you can see the extension the filenames have dates.
    From the library list you can see if you actually do have a lot or any duplicated by eyeballing the list sorted by the location. You don't want to delete anything yet until you know what you want to do and what folders the bookmarks actually in, as you would not want to delete a categorized bookmark for an uncategorized one.
    I have 1256 bookmarks, a bookmarks backup file (.json) is 1849 KB.
    I have 750 of those bookmarks have a keyword shortcut -- most of my bookmarks may not actually be bookmarks to webpages.
    Install the "Show Parent Folder" extension, it would be important for manually categorizing and deleting bookmarks.
    *https://addons.mozilla.org/firefox/addon/show-parent-folder/
    At some point you will want to install the "Sort Places" extension that allows you to sort folders recursively in a matter of seconds. Only sort when you want to sort, never automatically.
    * https://addons.mozilla.org/firefox/addon/sortplaces/
    Other extensions of interest for working with bookmarks are included in
    * http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
    The columns in the bookmarks library list that I show are
    :Name, Location, Parent Folder, visit date, visit count, Keyword, Description, Last Modified
    The important columns for eliminating duplicates are
    :Name, Location, Parent Folder, Keyword, Description
    :if you have Tags then that column would also be important not to delete the bookmark
    Sort on Location look for duplicates, expect you won't find as many as you thought you would, because Firefox makes it difficult to create duplicates if you use the bookmarks star. I wouldn't delete any until you really know what you want to do, if you have duplicate you would not want to delete one a primary location based on parent directory or the one you use with a keyword.
    I don't really think you have much to delete in your toolbars list, they are basically examples. Would highly recommend you keep something in the bookmarks toolbar even though you are not displaying it.
    The only case of having major duplicates are if you have imported bookmarks at the bottom of your bookmarks menu also named bookmarks menu or something similar. You would see that in the parent folder column -- you cannot sort on the parent folder column.

  • How can I use external tables with directories not on Oracle host?

    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks

    905989 wrote:
    Oracle 11.2.0.2
    We have developers using C# to populate global temporary tables (two one header and detail with 1 to many relationbship between these two tables). The process of using C# was blowing up memory on Windows.
    As an alternative I requested them to create two CSV files and I can use sqlldr to load the detail CSV file of over 1 million rows under 15 seconds. It came to my mind that I could use external tables for this purpose with getting read of header and trailer from the CSV files.
    The issue I have is that I am not a DBA so I do not have access to OS host that Oracle instance is running. sqlldr is a client side tool, whereas external tables are server side. I was wondering if there is an alternative in 11g to use external tables without creating directories on the OS host that Oracle runs on? Are there other alternatives?
    Thanks
    no other alternative

  • How can I represent a table with JSF ?

    Hi,
    I want to replace my (html) table with a JSF representation..
    I found the tag <h:dataTable>, and this defines <h:column> but there is no <h:row> !!
    There is an attribute rows to represent the number of rows to display, but how can I add these rows ?
    Thank you

    <h:panelGrid columns="2">
    </h:panelGrid>will produce table with 2 columns and if provided, the next 2 columns will appear in the next row and so forth...

  • How can we create a table with more than 64 fields in the default DB?

    Dear sirs,
    I am taking part in the process of migrating a J2ee application from JBoss to SAP Server. I have imported the ejb project.
    I have an entity bean with 79 CMP fields. i have created the bean and created the table for the same also. but when i tried to build the dictionary, i am getting an error message as given below,
    "Dictionary Generation: DB2:checkNumberOfColumns (primary key of table IMP_MANDANT): number of columns (79) greater than allowed maximum (64) IMP_MANDANT.dtdbtable MyAtlasDictionary/src/packages"
    Is it mean that we can not create tables with fields more than 64?
    How can i create tables with more than 64 fields?
    Kindly help,
    Thankyou,
    Sudheesh...

    Hi,
      I found a link in the help site which says its 1024 (without key 1023).
    http://help.sap.com/saphelp_nw04s/helpdata/en/f6/069940ccd42a54e10000000a1550b0/content.htm
      Not sure about any limit of 64 columns.
    Regards,
    S.Divakar

  • How can i active my iphones with one app id and using find my iphone apps

    hi
    i want to register 2 iphones with one app id ,and using find my iphone apps in my iphones ,
    how can i do it ?
    please help me

    this will not work for "find my iPhone".  It is always a good idea to have two seperate Apple ID's anyway

  • How can I set up itunes with one ipod and two laptops?

    My boyfriend gave me an ipod a few months ago and he let me set up itunes on his laptop so everything is there. now that i have my own laptop i want everything thats on his laptop on mine. The itunes part i mean. but i don't know how can anyone help me?

    Do as this article says:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    That will make your iPod the syncing computer.
    You can only have one syncing computer/iTunes library for apps. and photos. You can however, manually sync music and vides from multiple computer/library if you sync manually. See that topic of:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • How can I update the table with a single query for...

    I have a table with columns C1 and C2.
    C1 C2
    A1 null
    A1 null
    A1 null
    A1 null
    A2 null
    A2 null
    A2 null
    A3 null
    A4 null
    A4 null
    I want to update my table with a single query so that I would have data like
    C1 C2
    A1 1
    A1 2
    A1 3
    A1 4
    A2 1
    A2 2
    A2 3
    A3 1
    A4 1
    A4 2
    The updated column C2 has the values like serial no grouped on the column C1.

    SQL> create table mytable
      2  ( c1 varchar2(2)
      3  , c2 number(2)
      4  )
      5  /
    Tabel is aangemaakt.
    SQL> insert into mytable (c1)
      2  select 'A1' from dual union all
      3  select 'A1' from dual union all
      4  select 'A1' from dual union all
      5  select 'A1' from dual union all
      6  select 'A2' from dual union all
      7  select 'A2' from dual union all
      8  select 'A2' from dual union all
      9  select 'A3' from dual union all
    10  select 'A4' from dual union all
    11  select 'A4' from dual
    12  /
    10 rijen zijn aangemaakt.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1
    A1
    A1
    A1
    A2
    A2
    A2
    A3
    A4
    A4
    10 rijen zijn geselecteerd.
    SQL> merge into mytable t1
      2  using (select c1
      3              , row_number() over (partition by c1 order by null) rn
      4              , rowid rid
      5           from mytable
      6        ) t2
      7     on (t1.rowid = t2.rid)
      8   when matched then
      9        update set c2 = rn
    10   when not matched then
    11        insert values (null,null)
    12  /
    10 rijen zijn samengevoegd.
    SQL> select * from mytable
      2  /
    C1                                     C2
    A1                                      1
    A1                                      2
    A1                                      3
    A1                                      4
    A2                                      1
    A2                                      2
    A2                                      3
    A3                                      1
    A4                                      1
    A4                                      2
    10 rijen zijn geselecteerd.Regards,
    Rob.

  • How can i add two table into one internal table

    I WANT TO ADD THIS TWO DIFFERENT TABLE INTO ONE INTERNAL TABLE PLEASE HELP.
    TABLES: J_1IEXCHDR, J_1IEXCDTL.
    SELECT * FROM J_1IEXCHDR WHERE STATUS = 'P'.
    WRITE: / J_1IEXCHDR-LIFNR,
              J_1IEXCHDR-DOCNO,
              J_1IEXCHDR-EXYEAR,
              J_1IEXCHDR-BUDAT.
    SELECT * FROM J_1IEXCDTL WHERE TRNTYP = J_1IEXCHDR-TRNTYP
                              AND DOCYR  = J_1IEXCHDR-DOCYR
                              AND DOCNO  = J_1IEXCHDR-DOCNO.
       WRITE: / J_1IEXCDTL-EXBAS,
                J_1IEXCDTL-EXBED,
                J_1IEXCDTL-RDOC1,
                J_1IEXCDTL-ECS.
    ENDSELECT.
    ENDSELECT.
    THANKS IN ADVANCED.

    U have to link these 2 tables like this
    <b>SELECT
    J_1IEXCHDR~DOCNO
    FROM J_1IEXCHDR inner join J_1IEXCDTL
    on J_1IEXCHDRDOCYR  = J_1IEXCDTLDOCYR
    WHERE STATUS = 'P'.</b>
    this is sample code only, and u have to check the F.key relationship.
    Regards
    Prabhu

Maybe you are looking for