purging hands & its effect on db speed/performance
Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default purging hands & its effect on db speed/performance

    I know how to optimize by database, I've read the FAQ's on performance tweaks, I get what I could do to my computer and to postgres to help HEM run quicker, but I'm not quite sure how purging hands effects speed.

    According to one of the FAQ's, the "Purge Hand History Option here removes the Hand History, but keeps the stat." So I'm wondering then if it's going to help 1) make the HUD run more smoothly, and 2) make report queries run faster. I understand that the hand histories themselves will be gone, but if the stats are still there, is the db going to work better?

    Here's an example of my situation: I had 4M hands in my db, and I purged all my old hands from last year which included some observed hands as well, then I optimized the db via HEM's maintenance tool. Now my db has a mere 50k hand histories (comparatively much smaller). Is it going to run at a peak performance now? Or are those other ~3.9 million hands somehow still clogging things up? If so, would exporting & reimporting the hands into a new db help things? Thanks.

  2. #2
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    it's going to help 1) make the HUD run more smoothly, and 2) make report queries run faster. I understand that the hand histories themselves will be gone


    1/2: not really. It will only save you about 10-15% of diskspace.
    Now in theory, if a huge database is smaller it will reduce access delays, but you'll only gain some milliseconds. When running a query this can show the biggest improvement... but a SLOW query running 15% faster will still be slow.

    Try to manually vacuum/analyse/reindex the database in pgadminIII, and defrag the harddisk. Read:
    http://forums.holdemmanager.com/mana...ease-tips.html
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  3. #3
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default

    If I did decide to recreate a new db and re-import hands (which I'd do by exporting hands histories from the old db, then importing them into the db), will the marked hands show up, or do exported hands only save the raw history?

    Also, what about tournament summaries? When you export & re-import into a new db, do the summaries go with them? If not, is there another way to just save/import them? Thanks.

  4. #4
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    You'll lose the marked hands info.


    You can export your tournament summaries separately, by selecting your tournies in the Tourney--> Results--> Dataview window--> export summaries.


    On which site did you play all these games?
    If PokerStars it's easier to just request ALL your hands / and summaries from Stars.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  5. #5
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default

    I play at FT. I'll give this a shot -- thanks for your help!

  6. #6
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default

    Quote Originally Posted by fozzy71 View Post
    When you 'export the database' from the control panel it exports all of them in their original form and format. When you import them to a new database with the latest version of HM it should import them correctly.

    You should import the original hands from your \hmarchive first and/or email your poker site support for all your original hands, before you import the exported versions, IMO.

    When I have to rebuild my database I import the originals I have, the ones I have requested from support, and lastly my exported versions. By the time I import the exported hands it will show/skip many duplicate hands but this way I am sure I have all hands reimported.
    Sorry if I'm being dense here, but let me see if I have this right. If I wished to create a pristine (and accurate) new DB w/ just the hands I wanted (not the ooooold hands from 2010 as I explained in my original post here) I would:


    • Purge the old hands I didn't want from my old DB.
    • Perform a vacuum/analyze.
    • Export all hands histories, & export tourney summaries.
    • Create the new DB.
    • Import the previously exported hands & tourney summaries.
    • Import original hh's that I want from the HEM archive and/or from the poker site once I request them.
    • Perform a vacuum/analyze.

    Is that right? Will that ensure a clean (& hopefully smoother running) new DB?

  7. #7
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    Yes.... though I'm not a big fan of reimporting "exported hands".
    (since some characteristics can get lots, for example if you export a RUSH hand, HoldemManager will no longer be able to recognize that hand as being a RUSH hand,... and will think it's a regular cash game.)

    So importing original handhistories from your archive folder. (you can also request ALL your handhistories from Full Tilt) is best.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  8. #8
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default

    Good to know. Is this something you guys are going to fix in a future update? Also, are there other info you know about specifically that gets lost in an export?

  9. #9
    HM Support Patvs's Avatar
    Join Date
    Feb 2009
    Location
    Amsterdam, the Netherlands
    Posts
    33,523

    Default

    Lost in export:
    -RUSH
    -maybe Multi Entry Tournaments will get lost

    When exported: HoldemManager just moves all the handhistories to a .txt file.
    The issue is with some hands it's not the content of the handhistory that's very interesting, it's the name of the actual file.

    When exporting hands, HoldemManager currently is unable to also restore that name. (since it doesn't save that at all.... PokerTracker3 has the same issue)

    ---

    In fact, the same thing happened when requesting RUSH hands from Full Tilt. (with their hand history beta) I'm unsure if Full Tilt fixed this on their side, since the requested RUSH hands look identical to non-RUSH hands.

    So this isn't going to be fixed. And you should always save your original handhistories / backup your archive folder.
    Participate in the Beta release of the newest Hold'em Manager version: HM Cloud. Sign-up HERE.

    If you would like to leave some feedback to help us improve the quality of the solutions, and/or the support quality you received, - you can do this here

  10. #10
    Senior Member rowhousepd's Avatar
    Join Date
    Feb 2010
    Location
    Philadelphia, PA
    Posts
    622

    Default

    Quote Originally Posted by Patvs View Post
    In fact, the same thing happened when requesting RUSH hands from Full Tilt. (with their hand history beta) I'm unsure if Full Tilt fixed this on their side, since the requested RUSH hands look identical to non-RUSH hands.
    FYI, I created a new db and imported just the hands that was sent to me from Full Tilt when I requested them via their HH beta, and it looks like it's differentiating between Rush & non-rush hands now.

    One other semi-related question: If I understand you right, the stats that players accumulate when you import hands stay with them (& I assume will be reflected in their HUD stats) even if you purge the actual hands that contributed to their stats. Is that correct?

    Also, is the same true w/ observed hands? There are some players I have observed hands on, so if I purge all of my observed hands the stats that appear in their HUD are going to reflect all the hands I once observed but deleted since then, correct? Thanks.

Similar Threads

  1. Replies: 23
    Last Post: 04-15-2011, 08:25 AM
  2. Effect of processor speed
    By schroder999 in forum Manager General
    Replies: 3
    Last Post: 12-21-2009, 01:40 AM
  3. Speed up import performance?
    By dendehun in forum Manager General
    Replies: 5
    Last Post: 08-05-2009, 07:37 PM
  4. Does purging hand increase the performance of the HUD?
    By madskills in forum Manager General
    Replies: 3
    Last Post: 06-02-2009, 01:09 PM
  5. Import performance speed
    By SootedNinjas in forum Manager General
    Replies: 5
    Last Post: 12-12-2008, 01:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •