Purging tournament players doesn't work

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

Purging tournament players doesn't work

Postby Lythande71 » Mon Dec 29, 2008 12:21 pm

Hi,

the "purge players w/o hands" does not work for tournament players, i.e. tournament players without hands or winnings remain in the database even if you try to purge them several times after loading a tournament summary.

This is annoying since huge tournaments like the PS Sunday million blow up the number of players in the database causing a huge decrease in performance.

Here are my questions:

a) How can I manually delete tournament players w/o hands or winnings?
b) In wich beta will the purge option work even for tournament players?
c) How can I choose not to even import players w/o hands or winnings when importing tournament summaries like in PT2? Or when will this feature be implemented

Theses things are crucial for tournament players since after importing only a few MTTs PT3 is not usable anymore due to lack of performance.
Lythande71
 
Posts: 33
Joined: Thu Jul 31, 2008 10:28 am

Re: Purging tournament players doesn't work

Postby kraada » Mon Dec 29, 2008 12:54 pm

Purge players without hands should be working; are you using Beta 23? If not, please upgrade to Beta 23 and try again.

If it doesn't work in Beta 23, please enable logging (Configure --> Options --> Logging Enabled and restart PT3) and attempt to run that purge then attach the C:\Program Files\PokerTracker 3\PokerTracker.log file to a support ticket and we'll look into what could be causing this and get it fixed.

I'll make sure your feature request (to have an option to not import players who have no hands from tournaments summaries) reaches our developers' ears.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Purging tournament players doesn't work

Postby Lythande71 » Mon Dec 29, 2008 1:37 pm

Yes I'm using Beta23
Yes I have opened a support ticket.

Here is what i have done

- I cleared all tournaments manually (by deleting every row in tables named "tournament_*" via pgAdmin to make sure that there is no tournament at all in the whole DB. Of course I have done the housekeeping stuff afterwards.

- Imported the handhistory from only one PS MTT tournament (127699582) with 1252 Players
- Imported the tournament summary of this tourney using email import
- took a snapshot of PT3 tournament statistic window showing 1252 players

- Purged players w/o hands from the Database Maintanance window
- took a snapshot of the purge window after the purge showing that there are still players with no sessions
- refreshed tournament statistic window and took another snapshot of it still showing 1252 players

Unfortunately i dont know how to post the snaphots here in the forum article but i have attached them to the support ticket.
Lythande71
 
Posts: 33
Joined: Thu Jul 31, 2008 10:28 am

Re: Purging tournament players doesn't work

Postby kraada » Mon Dec 29, 2008 1:50 pm

Thanks, that will really help us get this fixed. Which we will do, hopefully for the next beta release.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Purging tournament players doesn't work

Postby Lythande71 » Wed Dec 31, 2008 6:53 am

Ok,

i dig myself through the db-structure and i think i found out why purging tournament players doesnt work.
Reason is there are still tournament results in table 'tournament_holdem_results' after importing a tournament summary even for players without winnings, hands or sat-seats.

I managed to solve that problem for me taking two steps (order is important)

1. deleting all tournament results from players without winnings or hands

-- Delete tournament results from players without hands (Start)
delete
From tourney_holdem_results t3
where amt_won = 0 and flg_sat_seat is false
and id_player in
(
Select t1.id_player
from player t1
left join tourney_holdem_hand_player_detail t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
-- Delete tournament results from players without hands (End)

2. deleting all players that have no cash game hands, no tournament hands and no tournament results
-- delete players with no hands and no tournament results (Start)
delete
from player
where id_player in -- players without tournament results
(
Select t1.id_player
from player t1 left join tourney_holdem_results t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
and id_player in -- players without tournament hands
(
Select t1.id_player
from player t1 left join tourney_holdem_hand_player_detail t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
and id_player in -- players without cashgame hands
(
Select t1.id_player
from player t1 left join holdem_hand_player_detail t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
-- delete players with no hands and no tournament results (End)

For those (and only for those!!!) who are familiar with SQL feel free to run these queries from the pgAdmin in the correct order and on your own risk. I cant give any guarantees.

Depending on db size these queries may take a while. But afterwards the performance of PT3 tournament stats increases remarkably

Any comments or questions are welcome ;)

Rgds,

Lythande71
Lythande71
 
Posts: 33
Joined: Thu Jul 31, 2008 10:28 am

Re: Purging tournament players doesn't work

Postby kraada » Wed Dec 31, 2008 11:01 am

Awesome, I'll make sure our development team sees those queries so that will definitely get fixed in the next release.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Purging tournament players doesn't work

Postby siash69 » Tue Feb 10, 2009 4:50 pm

Sure did work thanks!! I went down from 88000 players to just under 9000!! wasnt quite an idiots guide but with some help from karaada I managed it!!

I hope they incorporate you program into a new release!! :D
siash69
 
Posts: 30
Joined: Fri Feb 06, 2009 7:01 am

Re: Purging tournament players doesn't work

Postby kraada » Tue Feb 10, 2009 4:54 pm

We will, I just don't know exactly how soon we'll get it done. I'm hoping it'll be sooner rather than later, for what it's worth, also.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Purging tournament players doesn't work

Postby vbonfanti » Tue Feb 24, 2009 3:44 pm

I ran the SQL provided by Lythande71 and it worked perfectly--thanks! However, I still had several thousand players who had tournament results (winnings), but no hand histories. I wanted to delete all players who had no hand histories even if they had tournament results (winnings), so I modified the second SQL as listed below. But it seems to me this is going to leave a bunch of orphaned entries (rows) in the "tourney_holdem_results" table; I'm no SQL expert, can someone help me figure out how to clean up the "tourney_holdem_results" table after executing the modified second SQL statement, below? It seems I have to "delete from tourney_hodem_results" where "id_player" doesn't exist in the "player" table, but I don't know how to write the SQL to do this. Thanks.

-- delete players with no hands (Start)
delete
from player
where id_player in -- players without tournament hands
(
Select t1.id_player
from player t1 left join tourney_holdem_hand_player_detail t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
and id_player in -- players without cashgame hands
(
Select t1.id_player
from player t1 left join holdem_hand_player_detail t2 on t2.id_player = t1.id_player
where t1.id_player <> 0 AND t1.id_player <> 2
group by t1.id_player
having count(t2.id_player) = 0
)
-- delete players with no hands (End)
vbonfanti
 
Posts: 6
Joined: Fri Oct 24, 2008 4:00 pm

Re: Purging tournament players doesn't work

Postby kraada » Tue Feb 24, 2009 3:59 pm

I'm afraid I'm not versed enough in PostgreSQL to be able to give you an answer here, but I've brought your question to the attention of someone who can, so we should get a response for you.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Next

Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests