Open Side Menu Go to the Top
Register
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013

02-04-2010 , 06:39 PM
Quote:
Originally Posted by 1meandog4u
When do you think I'll have problems with the size of my db? I'm using MYsql and I'm estimating I have over 400K hands. I did notice recently that it is "locking up" maybe once every couple of days.

I'm playing 6 tables, and have a few years of stats... About 1500 to 2000 hands a day, sometimes less when I have to mow the lawn, trim a tree... or other "honey-do's".

My database is so big, I can't install the most recent ver12 for 2010 because it would take me 12 hours (I know cuz I had to recently restore it in early January... sigh... THEN right after that you released a new snapshot and said, "You will have to rebuild your database..." Grrrrrrrrrrr

BTW, do we have to use the new config file with that new snapshot? If we do, more cut-n-pasting with table locations etc. work... work... work...

Dog
Hi Dog,

I meant to reply to this earlier, sorry for the gap ...

I dunno mate, I only have a fairly small db (say generally 20k-30k hands) and I only have 80k or 90k hands all time (if I even have the histories for all of them). If I make any rash comments about which db to prefer, you have to understand it's hunch and bias on my part as much as anything.

But I do suspect postgres is better at the serious size db's, so you might find a difference ... but having said that I think management is the key thing when you have that many hands. I think I would have several db's; a main db for playing (but only say 100k hands or less), and then maybe a series of 100k dbs for history. Then try out a small db occasionally when new code comes out.
Note that the new importer is definitely quicker than the old one - but then I dunno how much it will slow down on your size db ... but for 5-figure db sizes I think 50+ hands/second is possible/likely.

For the config file, I think you can just run with an old one generally, I've only just updated mine - you're right it's a pain

- sc
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 07:30 PM
Might be nice to support multiple database elements in the config, and select between them within the GUI.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 08:49 PM
Quote:
Originally Posted by uncooper
Might be nice to support multiple database elements in the config, and select between them within the GUI.
You can define multiple dbs in the config, like this:

Code:
<supported_databases>
    <database db_ip="192.168.1.100" db_name="fpdb" db_pass="*" db_server="mysql" db_type="fpdb" db_user="*"/>
    <database db_ip="192.168.1.100" db_name="fpdbTEST" db_pass="*" db_server="mysql" db_type="fpdb" db_user="*"/>
    <database db_ip="localhost" db_name="fpdbLOCAL" db_pass="*" db_server="mysql" db_type="fpdb" db_user="*"/>
    <database db_ip="localhost" db_name="fpdbLOCALTEST" db_pass="*" db_server="mysql" db_type="fpdb" db_user="*"/>
    <database db_ip="localhost" db_name="fpdbLITE" db_pass="fpdb" db_server="sqlite" db_type="fpdb" db_user="fpdb"/>
</supported_databases>
Then specify the one you want to use with the -d option on the command line. (you actually set up shortcuts and click on the one you want, eh?)

Code:
fpdb.py -d fpdbLOCALTEST -c ~/HUD_config.xml
Reimporting is going to be necessary if you want to keep up with the latest code. We do talk about these things and try to not break backwards compatibility for no reason.

People who have a lot of hands might split them up in to a few dirs and just import the most recent hands the first night.

When we add a new option to the config we usually supply a sensible default. Therefore, you can always try your old config and see if it breaks.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 09:26 PM
Quote:
Originally Posted by Eratosthenes

Code:
fpdb.py -d fpdbLOCALTEST -c ~/HUD_config.xml
Thanks, this is awesome!
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 09:52 PM
Quote:
Originally Posted by sqlcoder
Hi Dog,

I meant to reply to this earlier, sorry for the gap ...

... but having said that I think management is the key thing when you have that many hands. I think I would have several db's; a main db for playing (but only say 100k hands or less), and then maybe a series of 100k dbs for history. Then try out a small db occasionally when new code comes out.
Note that the new importer is definitely quicker than the old one - but then I dunno how much it will slow down on your size db ... but for 5-figure db sizes I think 50+ hands/second is possible/likely.

For the config file, I think you can just run with an old one generally, I've only just updated mine - you're right it's a pain

- sc
Thanks for the input. I had postgres and hated it, but some people like hot dogs and some hamburgers... I think I'll stick with Mysql for now. I am fairly organized on the HH's. Every night I zip them up and store them by quarters. I probably just need, as you suggested, to use mainly the newest quarter. Probably more accurate on players since players come and go, and often either get worse or better.

I'm going to try and install the newest update, then recreate the db and just see how long it does take. I'll post the results here. Thanks again.

Dog
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 10:33 PM
Quote:
Originally Posted by 1meandog4u
Thanks for the input. I had postgres and hated it, but some people like hot dogs and some hamburgers... I think I'll stick with Mysql for now. I am fairly organized on the HH's. Every night I zip them up and store them by quarters. I probably just need, as you suggested, to use mainly the newest quarter. Probably more accurate on players since players come and go, and often either get worse or better.

I'm going to try and install the newest update, then recreate the db and just see how long it does take. I'll post the results here. Thanks again.

Dog
There will be a new snapshot "soon". You'll want it, because it has some good bug fixes in it. If reimporting is painful, you should probably wait and see if it pops up.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 11:06 PM
Quote:
Originally Posted by Eratosthenes
There will be a new snapshot "soon". You'll want it, because it has some good bug fixes in it. If reimporting is painful, you should probably wait and see if it pops up.
Please say you didn't say that!!!

I installed the new update and am now in the process (approaching the one hour mark) of just the recreating the db. I still have to import all the hands. Too late to stop now. I may reduce the amount of bulk import files. I just looked... I have almost 2000 files, 950megs of hh's.

Dog
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-04-2010 , 11:35 PM
Quote:
Originally Posted by El helado Patata
I dont have any test1 and test2 in that folder?! I had the same message as the guy above. Where can they be found?

Btw, when I point and click-created a db in postgresql i did not got to choose a password. Is that the standard postgres-password or is it individual?
test1.py and test2.py both exist in the pyfpdb/ directory of the latest snapshot.

I recommend supplying a user and password that only has access to that database you created, or there is potential (however unlikely) that fpdb could access/conflict with the HEM/PT3 database.

Sorrow.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 12:12 AM
It's now been two hours since I clicked "Create or Recreate Database" and it is STILL chomping away, so it's not locked. Damn.. how long can it take to delete, where's the delete key...

Dog
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 01:26 AM
Quote:
Originally Posted by 1meandog4u
With 400 to 500k hands currently in my db at what point is the db going to be a problem. Am I close?
Quote:
Originally Posted by sorrow
The biggest db I know of (other than yours) is 200k hands. [...] so... you're in uncharted territory.
Purely on a theoretical basis one can predict that both MySQL and Postgres will cope easily with very large data sets (e.g. millions of hands). Databases are designed for this.

P.S. I've got close to 1 Gb in hand histories, so I may try to replicate Dog's experiment (as soon as I upgrade to a more powerful computer).
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 01:48 AM
I have PostgreSQL8.3 from having pt3..

i cannot put anything or understand how to get anything into there to allow access or anything to that sort. i am clueless.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 03:34 AM
Quote:
Originally Posted by 1meandog4u
The importing is good news, timewise. I have plenty of memory (computer, not me), a dual core processor, and it was ranging from 10hands/sec to a max of 17hands/sec.

Still think I'll gain little advantage over the previous version to fool with it at this point. I'll wait for the stats to get fixed. I did notice in the GUIplayerstats.py that someone noted the possible addition of a pop-up down the road, to be able to configure that columns ourself?

I still would like to know, from anyone running this successfully, or a developer. With 400 to 500k hands currently in my db at what point is the db going to be a problem. Am I close? At some point I know I have to cut off history, but hopefully MySql can handle a million hands and not freeze up. Any opinions? Anyone?

Thx

Dog
Dog,

I think I have pushed about 300k in it at once, just when messing around. Rebuild your OWN Hudcache down to a significantly smaller period of time, and your speeds should remain just fine. As far as I can tell, everything seems to remain pretty linear as far as speed of queries, except for inserts into the hudcache - if you're inserting into a record for someone you've got 200k hands on (that's .. just you, because you haven't played all of your hands with the same people, i'd hope) it takes a while to update that. You definitely don't need a year or more of history in your hud cache for yourself (and probably if you have 100k hands on any other players, you don't need that whole set in your hud cache).

I'm not personally seeing any speed difference at all between the new import and old import, except that there seems to be less of a difference between the hand import speed on hands where "nothing happened" vs "everyone at the table exploded in a giant cloud of chips". However, I haven't actually run any large bulk imports on it. (I do have most of a year and a half of handhistories archived around here somewhere's that I could and do intend to throw at it, once the numbers are in better shape)
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 03:37 AM
Quote:
Originally Posted by 1meandog4u
It's now been two hours since I clicked "Create or Recreate Database" and it is STILL chomping away, so it's not locked. Damn.. how long can it take to delete, where's the delete key...

Dog
it'll go much faster if you login to mysql, give it the command "drop database fpdb;" then give it the create command again (look at the fpdb mysql install instructions for specific syntax) When you tell it to recreate a table, it does all sorts of junk that isn't really necessary for what you actually want to achieve
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 05:08 AM
Quote:
Originally Posted by ekdikeo
it'll go much faster if you login to mysql, give it the command "drop database fpdb;" then give it the create command again (look at the fpdb mysql install instructions for specific syntax) When you tell it to recreate a table, it does all sorts of junk that isn't really necessary for what you actually want to achieve
That code needs to be revisited I think.

This is much quicker, but requires root or database create permissions on the server.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 05:58 AM
Quote:
Originally Posted by h3r34dalootty
I have PostgreSQL8.3 from having pt3..

i cannot put anything or understand how to get anything into there to allow access or anything to that sort. i am clueless.
PostSQL8.3 keeps asking for a password that i never set, and i cant create one.. ?? wtf!?

Last edited by h3r34dalootty; 02-05-2010 at 06:24 AM.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 06:29 AM
Quote:
Originally Posted by sorrow
My bad, that link is for the wrong download - http://****************/projects/fpdb...r.exe/download
even downloaded and installed ALL of that stuff.. still cant find the PROGRAM to launch the installer from, or HOW to do it? please help someone?
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 06:40 AM
Quote:
Originally Posted by h3r34dalootty
even downloaded and installed ALL of that stuff.. still cant find the PROGRAM to launch the installer from, or HOW to do it? please help someone?
I have no idea what you are attempting to do. I suspect you are stuck trying to unzip the snapshot. The snapshots have no installer.

If you have the environment installed using the file above, you need to download the latest snapshot, extract/unzip it to a folder (eg. FOLDER) and double click the file FOLDER/pyfpdb/fpdb.py

This will get you to the point where you need to enter details into the config file.

Sorrow
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 07:07 AM
fpdb python file 20kb: heres what happens when i attempt to open it..

a black python screen pops up, then disappears in 2 seconds, cant even read it..
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 07:10 AM
everytime i try and open a python file its creating a new one at the bottom 'name' compiled python file..

think they are error reports, even when i open them they close asap

perhaps python is not connected to postgresql8.3 that i have and thats the root of the errors ?
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 09:40 AM
Quote:
Originally Posted by h3r34dalootty
fpdb python file 20kb: heres what happens when i attempt to open it..

a black python screen pops up, then disappears in 2 seconds, cant even read it..
I'm just about to release another snapshot - it contains a file called test2.py that you can double click, which will tell us a bit more about what is working in your environment.

Sorrow
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 09:56 AM
New snapshot time.


Lots of patches and bugfixes in this release.


If you haven't read it yet please take a look the release notes for the previous snapshot - http://forumserver.twoplustwo.com/sh...postcount=2485



Notes for 0.12-20100205 - tarball and .deb available in the snapshots directory on sourceforge.

  • Fixes for utf encoding and display
  • Graphing - gametype selection now works (ie. holdem or omaha etc)
  • Fix HUD for tournaments
  • Fix HUD for Stud
  • Fix auto-import for FTP - Python UTF16 parsing when using seek() is broken.
  • PartyPoker: Fixed limit and freeroll support for tourney's
  • PlayerStats/Grapher: Autocomplete Hero names only lists the valid names for that site.
  • Full Tilt: Player name parsing. Previous versions were matching too greedily resulting in erroneous playernames like 'sorrow (button)'
  • Carbon Poker support: Alpha support. Cash games (NLHE), and bulk import only at the moment. Need someone who can actually run the client before we can implement and test hud functionality. We could use further hand history files specifically for different games here. Patch from Matthew Boss
  • Everleaf Tournament support - NLHE
  • Make import timer work again
  • Fix double count bug when importing duplicates
  • Allow Stars tablename to include #
  • Log rotation, should now limit log files to 5x100Mb files.
  • Allow Stats and Graph page 'left pane' be refreshed - ie. after you import a new game or stake.
  • Move disabled sites to the bottom of converter list (1 site enabled, means the selection is always right)
Special props to Matthew Boss - a long time user who wanted to contribute something back, so wrote the converter for Carbon poker, a site he doesn't play on.

May variance be with you.

Sorrow
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 10:50 AM
Quote:
Originally Posted by sorrow
I'm just about to release another snapshot - it contains a file called test2.py that you can double click, which will tell us a bit more about what is working in your environment.

Sorrow
The snapshots doesnt contain any zip-files? Tar.gz doesnt work for windows if you dont install 3rd party software.

EDIT: I assume that tar.gz is some hardcore programmer zipmethod that is technically better then zip/rar but the best packing-method is not the one with the best packing, is the one easiest to use (that we all have and that needs no 3rd party installing). I hate when people use strange formats for images like .DAA when there is .ISO and .BIN that is compatible with everything.

Last edited by El helado Patata; 02-05-2010 at 11:05 AM.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 10:57 AM
so when i first opened it after the new snapshot i got that i didnt have a program.. then i downloaded that and clicking the FPDB.py is actually bringing up the program!!

Now what do i do from here? all it has up is a help tab telling me about a few changes you've made.. lol, i feel like a ******.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 11:12 AM
Quote:
Originally Posted by El helado Patata
The snapshots doesnt contain any zip-files? Tar.gz doesnt work for windows if you dont install 3rd party software.

EDIT: I assume that tar.gz is some hardcore programmer zipmethod that is technically better then zip/rar but the best packing-method is not the one with the best packing, is the one easiest to use (that we all have and that needs no 3rd party installing). I hate when people use strange formats for images like .DAA when there is .ISO and .BIN that is compatible with everything.
Use

http://www.7-zip.org/

to decompress.
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote
02-05-2010 , 11:24 AM
Quote:
Originally Posted by sorrow
Hi all,

Time for a new snapshot release.

This snapshot is a major code drop, and the culmination of a lot of work by the FPDB team.

The snapshot is named 0.12-20100122 and is available from the sourceforge download area for fpdb.

Please be careful and backup your fpdb directories and config files before testing.

The past couple of snapshot releases have been a gradual replacement of the importer originally written by Steffen for the original release of the project, with something that can more easily support many more sites, and generally be more robust than before. This snapshot is the last phase or replacing that code. The new code uses plug ins to support different sites, so that fixing a bug in one site will not cause problems in other sites. New sites can be supported much more easily.

I've been using this branch exclusively for my play for about 6 weeks now and consider it stable. it may still attempt to eat your children, but it hasn't gone after mine as yet. Please be aware that this snapshot does contain a lot of bugs, i'm releasing as the fastest way to shake them out is to get more expansive testing.
  • Cash games are functional for all games on Stars (mixed games untested). This includes draw games.
  • Import is a lot faster than before - i'm getting 100h/sec on my laptop (IBM T60p http://www.thinkwiki.org/wiki/Category:T60p)
  • With 120k hands in the database, I was able to 14338hands@70/sec. With 100k+ hands in the database. I'm still regularly getting 1k hand files importing at > 100h/sec (MySQL). This is a massive performance increase over previous versions
  • Performance still good with Postgres. I've not tested this, but Bostik assures me it is so.
  • Tournaments appear to import ok. I've not played a tournament to know of the hud works or not.
  • Draw games do not have cards, or discards stored yet, but should have all of the stats available that flop games do. Haven't tried this with a hud yet.
  • Other changes since the last snapshot:
  • Added seats option to HUD menu
  • Added showdown/non-showdown winnings line to grapher. (known broken at the moment)
  • PartyPoker - fix for tables with no disconnect protection (Thanks Neko)
  • Fix for Stars EUR tourney import
  • Colouring of player stats by threshold - Contributed by Gerko de Roo
  • PokerStars converter - Accounting error when playing heads-up on ring games fixed - Gerko again
  • Fix to player stats view for '22' this was being marked as 'xx' previously. Gerko and sqlcoder
  • Player name database encoding fixes. Bostik and Gerko
  • Lots of bug fixes. Almost certainly lots of replacement bugs added


Known Bugs:
  • The HUD will fail to come up if no hands have been bulk imported first
  • The stud mucked card display 'stud_mucked' crashes. The hud functions without the mucked card display.
  • Some stats aren't being calculated properly. Some of the known ones:
  • Steals aren't being calculated correctly for different max-seats, and may just be completely wrong.
  • all-in preflop (or possible any street) with any caller is being marked as 'non-showdown' winnings.
  • No 3bet is recorded if a 4bet occurs. (Noticed this on a 5 bet shove, may be related to the all-in issue)
  • The total profit (or net) stat is incorrect for FullTilt and Betfair. (likely a limit game issue)
  • Some minor accounting issues for profit.
  • The non-showdown and showdown winnings line in the graph is wrong in enough cases that you should probably ingnore them.
  • Unknown:
  • Tourney support - just untested. If this works for holdem, it should work for all other games - fixing the long standing stud tourney import issue.

Installation Notes:

Download from http://****************/projects/fpdb/files/ in the snapshot directory.

This update will require you to recreate the tables and re-import your hand histories.

Depending on the version you have downloaded you will probably need to update your HUD_config.xml from the example file. I have uploaded this file separately into the snapshots area.

Please be careful and backup your fpdb directories and config files before testing.

Colouring of player stats. Look for:

stat_loth="20" - Low threshold for colouring is 20
stat_locolor ="#408000" - The colour for stats under stat_loth
stat_hith="40" - High threshold for colouring is 40
stat_hicolor ="#F05000" - The colour of stats over stat_hith

Known Issues:
  • When importing a single file with 14k hands, FPDB was consuming almost 1Gb of memory - I'm hoping this is just an artifact of large file bulk imports. Memory usage otherwise has beenok.
Bug Reporting:

Please take a look at http://****************/apps/mediawik...sked_Questions before reporting issues.

When you do report issues, i'd appreciate if you took a look at: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html Its one of the better pages describing bug reporting.

I'm going into bugfix mode now, so i'd appreciate bug reports with hand histories I can test against please. I'm specifically insterested in hands that crash the importer. (fwiw I'd appreciate bug reports with a test case and a patch even more

A special thianks to Grindi and Mct, both of whom wrote a lot of the code drop in this release.

More generally, thanks to all that contributed bug fixes, reports, and answered questions on the forum.

Thanks

Sorrow and the FPDB team
Here is a megaupload of a zipped version instead since nobody uses 7zip.

http://www.megaupload.com/?d=FJDQYJHX
Free, open source poker tracking software: FPDB - (Version 0.40.5) - Nov 14, 2013 Quote

      
m