Hash keys and the table Pagesize.

Hi,
We look to be running into some performance issues running on TimesTen 5.1.25, and feel that we may be running into a problem of having the hash size set too small, as we are seeing lock contention on the index hash values.
The documentation says that the hash size can only be changed by recreating the table, however the documentation also states, that to resize a hash index, the "ALTER TABLE owner.name SET PAGES = CURRENT;" statement can be used.
Could you please explain which of these statements is correct, and whether this may be leading to greater lock contention, or whether we should be looking elsewhere.
Regards,
mgh

Yes, an undersized hash index can lead to performance issues and excessive contention. One should always size the index based on the formula PAGES = (maximum number of rows) / 256. The ttXactAdmin utility can be used to investigate lock and latch contention on the hash index. The degree of impact depends on the ratio of actual rows to expected rows. If A is the actual number of rows and H is the number of rows for which the hash index has been sized then the ratio A / H should always be <= 1. If it exceeds 1 by a small amount (e.g. 1.1) then the impact is small but once it exceeds one by a significant amount e.g. 1.5 upwards then the impact increases very quickly.
In 5.1, the only way to resize the index is by unloading the table data to a file (ttBulkCp), dropping the table, re-creating with the 'correct' hash index sizing and then reloading the data (ttBulkCp).
The ability to resize the index using ALTER TABLE was introduced in TimesTen 6.0.
Since this is an obvious and well known source of performance problems and increased contention I would recommend that you try to eliminate this issue in the first instance and see if that improves things. If it does not then you can move on to investigate other areas.
Chris

Similar Messages

  • How to get keep one column as a key and the other columns as a array list

    Hello,
    I am really new to Java...I am trying to read a text file containing different columns separated by comma and then create a hash map for the first column (key) and then rest as a array list for the key.I am not able to create the hash map and the corresponding key.Could someone help me in this regard.
    The text document is :
    AcctNo,AcctMngr,AcctType,ProdList,Volume,AcctPrice,Returns
    12345,Vikram,2,MSFS:IBM:XYZ:MAN,28000,4500,1.25
    53278,Anand,1,PLYS:AIX:YET:WON,85000,8500,2.32
    94005,Vincent,3,UTIL:FLY:YEL:WIN,67000,5600,3.21
    45000,Abhishek,2,WENS:KYL:MEN:ABS,34000,9800,4.21
    76000,Chris,3,MENS:IBM:ROC:QUE,25000,2500,2.15
    67000,Kiran,4,FORS:ITI:MOC:REM,32000,3500,1.54
    87000,Rohit,2,MSNF:IIT:HOT:ROC,54000,5400,4,23
    45600,Sathyan,3,HELP:FOR:PRO:GRA,65000,3400,2,1.98
    84600,Vinay,4,PLZE:TES:ROC:WEN,76000,7300,3,4.32
    65000,Venkat,2,HETT:WEL:SEE:RED,89000,9800,1,3.23
    and the code which i have so far is
    import java.io.*;
    import java.util.*;
    class SearchHash {
    public static void main (String args[]) {
    int i=0;
    int j=0;
    Object newKey = new Object();
    Object newValue = new Object();
    Map map1 = new HashMap();
    ArrayList a1 = new ArrayList();
    String val;
    try {
    BufferedReader br1 = new BufferedReader ( new FileReader ( new File ("progress.txt")));
    String s="";
    s = br1.readLine();
    while (s!=null) {
    StringTokenizer st = new StringTokenizer (s ,",");
    int k=0;
    while (st.hasMoreTokens()) {
    while (k<=6) {
    val= st.nextToken();
    if (k==0) {
    newKey = val;
    else{
    newValue = val;
    a1.add(newValue);
    k = k+ 1;
    map1.put(newKey,a1);
    map1.put(newKey,a1);
    a1.clear();
    s = br1.readLine();
    // System.out.println(map1);
    }catch (Exception e) {
    System.out.println("Exception Raised : " + e);
    Thanks.,...

    Array? Don't live in object denial. Define a class (Account?) and parse each line as an Account object. Then you put them into a Map<Integer, Account> by their account number.

  • Foreign keys at the table partition level

    Anyone know how to create and / or disable a foreign key at the table partition level? I am using Oracle 11.1.0.7.0. Any help is greatly appreciated.

    Hmmm. I was under the impression that Oracle usually ignores indices on columns with mostly unique and semi-unique values and prefers to do full-table scans instead on the (questionable) theory that it takes almost as much time to find one or more semi-unique entries in an index with a billion unique values as it does to just scan through three billion fields. Though I tend to classify that design choice in the same category as Microsoft's design decision to start swapping ram out to virtual memory on a PC with a gig of ram and 400 megs of unused physical ram on the twisted theory that it's better to make the user wait while it needlessly thrashes the swapfile NOW than to risk being unable to do it later (apparently, a decision that has its roots in the 4-meg win3.1 era and somehow survived all the way to XP).

  • How to display name of the table and the description and the table type

    Hi,
    Can you people tell me how to display the name of the table and the description and the table type (View, structure, etc...) used in the program.
    I want to display in a list.
    Kind Regards

    use this program
    TABLES : TSTC, tstct.
    TABLES : DD03l, DD02l.
    DATA : Program like sy-repid.
    DATA : BEGIN OF I_FINAL OCCURS 0,
    tabname LIKE dd02l-tabname,
    TABCLASS LIKE dd02l-tabCLASS,
    TEXT LIKE DD02T-DDTEXT,
    END OF I_FINAL.
    DATA : BEGIN of ITAB Occurs 0,
    name like dd02l-tabname,
    END OF ITAB.
    DATA : TCD(100) TYPE C.
    DATA : var1 LIKE dd02l-tabname.
    DATA : DESC LIKE TSTCT-TTEXT.
    selection-screen skip.
    SELECTION-SCREEN : BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS : r1 RADIOBUTTON GROUP r DEFAULT 'X'.
    Parameters : Tcode like sy-tcode.
    selection-screen skip.
    PARAMETERS : r2 RADIOBUTTON GROUP r.
    Parameters : Prog like sy-repid.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.
    select-options : Type for dd02l-tabclass .
    SELECTION-SCREEN END OF BLOCK B1 .
    at selection-screen.
    if r1 = 'X' and Tcode is initial.
    message e001(00) with 'Enter Transaction Code' .
    elseif r2 = 'X' and Prog is initial.
    message e001(00) with 'Enter Program Name' .
    endif.
    START-OF-SELECTION.
    if r1 = 'X'.
    Prog = ' '.
    select single * from TSTC where tcode = tcode.
    if sy-subrc = 0.
    program = TSTC-PGMNA.
    select single TTEXT from tstct into desc where tcode = tcode and SPRSL = 'E'.
    else.
    Write :/ 'Invalid Transaction Code'.
    exit.
    endif.
    elseif r2 = 'X'.
    Tcode = ' '.
    program = Prog.
    endif.
    CALL FUNCTION 'GET_TABLES'
    EXPORTING
    PROGNAME = Program
    TABLES
    TABLES_TAB = itab.
    if itab is initial.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    ELSE.
    PERFORM : categorize.
    endif.
    END-OF-SELECTION.
    LOOP AT I_FINAL.
    WRITE :/4 I_FINAL-tabname COLOR 2 INTENSIFIED OFF NO-GAP HOTSPOT ON, 35 I_FINAL-TABCLASS COLOR 2 INTENSIFIED OFF NO-GAP,
    50 I_FINAL-TEXT COLOR 2 INTENSIFIED OFF NO-GAP.
    ENDLOOP.
    AT LINE-SELECTION.
    TCD = SY-LISEL.
    var1 = TCD+3(30).
    set parameter id 'DTB' FIELD VAR1.
    call transaction 'SE11' and skip first screen.
    TOP-OF-PAGE.
    WRITE :/45 'TABLE DETAILS RELATED TO THE TRANSACTION CODE' COLOR 7 .
    WRITE :/2 'DATE : ' COLOR 1, SY-DATUM COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TRANSACTION CODE : ' COLOR 1, Tcode COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'TCODE DESCRIPTION : ' COLOR 1, desc COLOR 1 INTENSIFIED OFF NO-GAP.
    WRITE :/2 'PROGRAM NAME : ' COLOR 1, PROGRAM COLOR 1 INTENSIFIED OFF NO-GAP.
    SKIP 1.
    WRITE :/1(140) SY-ULINE.
    WRITE :/4 'TABLE NAME' COLOR 5 INTENSIFIED OFF NO-GAP,35 'TABLE TYPE' COLOR 5 INTENSIFIED OFF NO-GAP,
    55 'DESCRIPTION' COLOR 5 INTENSIFIED OFF NO-GAP.
    WRITE :/1(140) SY-ULINE.
    *& Form categorize
    text
    --> p1 text
    <-- p2 text
    FORM categorize .
    SELECT dd02ltabname dd02ltabCLASS DD02T~DDTEXT
    FROM dd02l INNER JOIN DD02T ON dd02ltabname = dd02Ttabname
    INTO TABLE I_FINAL
    FOR ALL ENTRIES IN itab
    WHERE DD02L~TABNAME = ITAB-NAME AND TABCLASS IN TYPE AND DDLANGUAGE = 'E'.
    if sy-subrc <> 0.
    skip.
    skip.
    skip.
    skip.
    skip.
    WRITE :/40 'No Data Found' color 6 INTENSIFIED OFF.
    endif.

  • I have registered Adobe CS, and every two/three weeks i get a message that I am using a trial version.  I provide my registration key, and the fun starts over in two/three weeks.  What is going on?

    I have registered Adobe CS, and every two/three weeks i get a message that I am using a trial version.  I provide my registration key, and the fun starts over in two/three weeks.  What is going on?

    I'm not sure what's happening. See if you can get some help from Web Chat here:
    Serial number and activation support

  • Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • HT5636 I was typing in a word for Mac document and I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    I was typing in a word for Mac document and I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    Simply type command 8 again. That toggles the "show paragraphs" function.

  • ADF: initialize the VC and the table of a page

    Hello all,
    In HR schema I have an application with a menu with two items (Employees and Countries pages).
    Both pages have View Criteria on the top and a table grid below showing the data.
    When I search in Employees page for a particular employee, and then navigate to Countries page I noticed the following. If I go back to Employees page, the table is still filtered with the criteria I entered before, and the View Criteria panel has not been reset, but shows the criteria I initially entered.
    How can I have the VC initialized every time I enter a page, and the table not filtered???
    I hope there is a simple workaround for that.
    Thanks a lot!

    you will have to clear the viewCrtieria manually when the page is loaded everytime..
    1) have a dummy outputtext with visible = false as the last component
    2) have binding for the outputtext in the maanged bean
    3) in the getter of the outputText have the following code
    public void getoutputTextBinding(){
    DCIteratorBinding dciter;
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    dciter = (DCIteratorBinding) bindings.get("EmpView1Iterator");
    dciter.getViewObject().applyViewCriteria(null);
    dciter.getViewObject().executeQuery();
    }

  • Is There a List of Keyboard Shortcuts for Adobe Digital Editions, I Found Two By Accident the "Arrow" Keys and the "Enter Key" for Turning Pages in an eBook...

    Hi  ??  :       Does Anyone Know If There is a List of Keyboard Shortcuts for Adobe Digital Editions, I Found/Discovered Two By Accident the “Arrow” Keys and the “Enter Key” for Turning Pages in an eBook...   Thanks
    I Did Look for this Keyboard Shortcuts in Adobe Digital Editions Help & FAQ Areas and Got the Run Around, Very Hard to Find How Use Adobe Products !!
    Microsoft Windows Vista & Win 7 Operating Systems
    Message was edited by: Al Adams

    Nope, I doubt it.  As I said:
    I disabled Aero theme, checked font scaling was 100% and rebooted Windows in between all of the steps to no avail.
    I've been reading a lot around this and it seems the arrow key problem is a red herring; I think it's just some kind of terminal preferences corruption.

  • When I use the Alt key and the clone tool, I get a message that I did not use the Alt key to define

    Whe I use the Alt key with the clone tool, I get a message that I have to use the Alt key to define the area to be copied. What am I doing wrong?

    I tried to check the alined box, but it would not work. I was able to check
    the Sample box, but they they give you about 5 choices to check and I have
    no  idea what they are all about. I appreciate your help.
    Dino
    In a message dated 9/18/2012 11:09:06 A.M. Eastern Daylight Time, 
    [email protected] writes:
    Re:  When I use the Alt key and the clone tool, I get a message that I did 
    not use the Alt key to define
    created by hatstead (http://forums.adobe.com/people/hatstead)  in 
    Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/4707426#4707426)

  • What, if anyting, does pressing the windows flag key and the "r" key do?

    Last night some one with a very strong accent called, addressing me by name,  saying he had been contracted to contact people and warn them of a serious problem that affecting many computers.  He wanted me to press my windows flag key and the "r" key at the same time.  Stupid me did, but then became suspicious and hung up on him.  He never called back, and I turned my computer off.  Did I give him access to something?  What do I need to do?
    This question was solved.
    View Solution.

    I'm sure that was a scam call, but you hung up before they could do anything malicious to your computer. Pressing the Windows key + R just brings up the "Run" screen. It is completely harmless to bring up "Run," but if you had continued to follow all the steps this guy was about to give you, he probably would have tried to gain remote access to your computer or load a virus or some other awfulness. I'm glad you hung up on him!
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • I hit the delete key and the highlighted song on the playlist doesnt delete ??

    In I tunes I hit the delete key and the highlighted song does not delete.  I followed the exact steps from the manual ??????

    In my experience you can't delete songs from the library when you are starting from a smart playlist. If you delete songs from a manually created playlist, this deletes the song from that playlist view ONLY, and leaves the song in your library. If what you want to do is delete a song from your library altogether, the only way I know of is to do this from the library view.
    If you want to delete a song from a smart playlist, you can't do this directly. You need to either change the criteria for your smart playlist so that the offending song isn't selected any more, or else "uncheck" the song, and make sure that your smart playlist collects "checked songs only".
    One easy-ish way to exclude songs from your smart playlist might be to change the rating, and make sure that your smart playlist excludes all songs with that rating. However, watch out that you don't end up with a combination of rules that end up excluding all songs so that the playlist is empty, or else including too many songs so that too many items match the criteria.
    If I have not understood your problem correctly, please reply with more details. Thanks!

  • Installed new harddrive and I am trying to restore from time machine external back up. I restarted the computer and held the Command key and the R and the restore utility does not appear. what can I do

    I installed new hard drive and I am trying to restore from time machine external back up. I restarted the computer and held the Command key and the R and the restore utility does not appear. what can I do

    Command + R keys are for Macbooks running Lion and Mountian Lion only. ( i could be wrong on this)
    you have a couple of options:
    Do a clean install of Snow Leopard via Install DVD.
    Clone your old hard drive to your new hard drive via Carbon Copy Cloner
    Or click on the link below to give you a better idea.
    Hope you get it sorted out.
    http://pondini.org/TM/14.html

  • HT5636 I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    Simply type command 8 again. That toggles the "show paragraphs" function.

  • Error while renaming indexes and keys in the tables

    hi gems...good afternoon..
    i am using oracle 11gr2 database.
    when i am trying to rename the primary key, foreign key, indexes of all the tables as per the standard, then the following error is given...
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01000: maximum open cursors exceeded
    ORA-01000: maximum open cursors exceeded
    currently the maximum open cursors parameter is set to 300.
    please help..thanks in advance

    thanks a lot for your help..
    there are total 162 records in the v$open_cursor for that user.
    among that the open cursor is only 4 and open-recursive cursor is only 6 for that user.
    in my session i am executing only the renaming of the constraints and nothing more.
    When i have queried the v$open_cursor for cursor_type='OPEN' for all the users, then i got that it has exceeded the value of open_cursors parameter.
    So how can i resolve that....

Maybe you are looking for