Reports taking very long to be completed

General discussion of PokerTracker 3.

Moderator: Moderators

Reports taking very long to be completed

Postby Zangeeph » Tue Dec 27, 2011 6:55 am

When I run some reports, they take over 5 minutes to complete. I do have a large database, but 5 minutes is too long for me. I need to lower the time to complete the report. I've seen a lot of information about how to speed up hand importing and HUDs but nothing on speeding up the time it takes to run a report. Does anyone know how to speed this up? Since all the data is already there, is it my hard drive limiting it? I looked at the RAM usage and CPU usage and they don't seem high at all (actually they are low) when running the report. So am I right to believe that I'd only need an SSD to speed up my reports by orders of magnitudes? I might be wrong as I know nothing about how databases work though.
Zangeeph
 
Posts: 205
Joined: Thu Jun 23, 2011 6:27 pm

Re: Reports taking very long to be completed

Postby kraada » Tue Dec 27, 2011 9:02 am

Following the steps in this tutorial will help report loading times, but there is only so much that can be done - the bottleneck when loading large reports is access time on your hard drive. It takes time to read all of the data that needs to be read.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Reports taking very long to be completed

Postby Zangeeph » Tue Dec 27, 2011 4:46 pm

So if I were to replace my hard drive with an SSD, what sort of increases would I see in the time it takes to generate a report? According to wikipedia, hard drive access times are 10ms while SSD access time is 0.1ms (dramatic increase as there is no mechanical movement in ssd), so would I see the speed increase by a factor of 100?
Zangeeph
 
Posts: 205
Joined: Thu Jun 23, 2011 6:27 pm

Re: Reports taking very long to be completed

Postby kraada » Tue Dec 27, 2011 5:06 pm

I haven't tested SSDs personally - there is some amount of computing that needs to be done after the data is retrieved before it is displayed. You would see a significant improvement but it is difficult for me to say exactly what factor it would be.

For the record though, everyone I know who has gone the SSD route has been extremely happy for having done so.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Reports taking very long to be completed

Postby Zangeeph » Tue Dec 27, 2011 6:06 pm

Well I do need to speed it up significantly. I'm just worried that I'm gonna get an SSD and it still won't be fast enough. I think I may just skip SSD and go straight to RAM disk.
Zangeeph
 
Posts: 205
Joined: Thu Jun 23, 2011 6:27 pm

Re: Reports taking very long to be completed

Postby kraada » Tue Dec 27, 2011 6:53 pm

You'd need enough RAM to fit the entire table into memory and that may require a whole lot of RAM. The rule of thumb is 100k full ring hands = 1G of data. If you're using a small enough database that it's < 10G on disk I'd be surprised if you were running into very long report load times - so you would need a considerable amount of RAM.

An SSD will probably be more cost effective unless you have a very specific setup already available to you.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Reports taking very long to be completed

Postby Zangeeph » Wed Dec 28, 2011 12:49 am

It seems that a specific filter expression is causing a dramatic slowdown. When I use no filters, reports take about 30 seconds to complete. With the following filter: tourney_holdem_hand_player_statistics.id_hand in (SELECT thhps.id_hand from tourney_holdem_hand_player_statistics thhps, tourney_holdem_hand_player_detail thhpd where thhps.id_hand = thhpd.id_hand and thhps.id_player = thhpd.id_player and thhps.position = 8 and thhpd.amt_before BETWEEN 3100 and 4900) it takes 5 minutes. With 3 of those filters (for different positions) it takes 29 minutes (just tested it now). Do you have any insight of why this particular filter is slowing the report down so much? After all, it was you who helped me design it in the first place (in this topic).

Anyway, I think i'll get an SSD regardless, because they are very good. Maybe a RAM disk in the future, but either way I'll have an ssd to speed things up. Can't wait for pokertracker 4.
Zangeeph
 
Posts: 205
Joined: Thu Jun 23, 2011 6:27 pm

Re: Reports taking very long to be completed

Postby kraada » Wed Dec 28, 2011 10:33 am

Each filter you add like that needs to read in pretty much the entire database another - so it is going to take a considerable amount of time. An SSD really will help quite a lot here.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests