* implement the new SessionsCache table
- The SessionsCache table can be used to track overall or game sepecific sessions
- The totalProfit field is summed by gameTypeId for cash games allowing for multiple currencies
- Tournament profit (cashes - buy-ins) are also recorded in totalProfit and its grouped by tourneyId
* change the sequence and methodology surrounding the import of hands
- fpdb_import.py implements a unique Hand.py method for each table
- Hands SessionCache and HudCache records themselves are 'cached' to allow for 'bulk insert' at EOF
- import is reorganized to allow for efficient locking in multiple connection environments
* changes the name of the index created by addTPlayersIndex (so that it is unique) to accommodate a bug in MySQL 5.5
TODO
* A 'rebuild_sessionsCache' method is still required
* Further commits are expected to fix bugs created during the porting of this code
Found an example summary file that only contained the player line:
<PLAYER> finished in XXXXrd place
Player should now be added the TP table, hence the stats should actually show up in the grapher
New fields:
ADDON - cost of addon
REBUYAMT - cost of rebuy
PNAME - Hero name
PREBUYS - No of Hero rebuys
ADDONCHIPS - How many chips the addon purchased
REBUYCHIPS - How many chips a rebuy purchased
ADDONS - Total # of tourney addons
REBUYS - Total # of tourney rebuys