The Poker Copilot Blog

Tracking the development of Poker Copilot, Mac OS X software for poker analysis and statistics.

Sunday, 21 June 2009

Sub-Millisecond Query Optimisation

Here's a summary of the queries needed to add 28,000 poker hands to Poker Copilot 2.


The average query time is 0.24 thousandths of a second. Which seems okay, except that 660,000 queries in total were performed. A very small number multipled by a very large number can result in too large a number.

I've never had to optimise queries before that were already running in less than a millisecond. Typically, a few milliseconds per query is satisfactory. This is just one of many technical challenges behind Poker Copilot. I enjoy technical challenges.

An advantage of such fast queries is it allows good concurrency.

Now I have two possibilities for future optimisation. Make the queries faster still. Or execute less queries, possibly through more aggressive caching.

0 comments:

 

Poker Copilot

Free 30 Day Trial

Only $69

Order risk free with our 30-day money back guarantee.

  • Poker software for Mac OS X
  • Supports Full Tilt Poker and PokerStars
  • Analyses your opponents while you play
  • On-table HUD for Mac
  • Easy to use, easy to understand

Watch a demo of the major features of Poker Copilot