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.
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
Subscribe to:
Post Comments (Atom)
About This Blog
In May 2008 I started working on Poker Copilot, initially as a product to help me with my own poker playing. Soon I joined a "30-day Challenge", where the participants each aimed to launch a software product in 30 days. As a result of this challenge, Poker Copilot version 1.0 was launched in July 2008.
This blog tracks the ongoing development of Poker Copilot. Who would find this blog interesting? People interested in 1-person software development, in Poker, or in both.
Contact me via email at steve at pokercopilot dot com.
This blog tracks the ongoing development of Poker Copilot. Who would find this blog interesting? People interested in 1-person software development, in Poker, or in both.
Contact me via email at steve at pokercopilot dot com.
Blog Archive
-
►
2010
(176)
-
►
August
(20)
- Poker Copilot 2.61 Now Available
- Poker Copilot 2.60 Now Available
- What I've Been Reading
- Video Demo Time: Changing the Colours in Poker Cop...
- Coming in the Next Update
- Colourful Poker Copilot Update: Take Two
- Colourful Poker Copilot Update for Early Adopters ...
- Summaries by Day
- Fireworks HUD
- Poker Copilot and the Christmas Tree HUD
- Poker Copilot 2.58 Now Available
- Java + AppleScript
- A very Mac addition to a build script
- Poker Copilot 2.57 Now Available
- Defeating a Poker Bot
- Full Tilt Poker for France Players - Please Help!
- On Being Wrong
- FullTiltPokerFR bleg
- Rakeback in Poker Copilot?
- Customer Suggestion: Better Odds for the Hand Repl...
-
►
July
(16)
- Poker Copilot 2.55 Now Available
- Help Me, Poker/Maths Experts
- Sentence of the Day
- Can I Steal Your Email Address?
- Coming in the next Poker Copilot update
- Cheating at Poker
- Essential Poker Copilot Update for Winamax Players...
- AND Things Are Back Where They Were 2 Days Ago!
- Poker Copilot 2.53 Released
- Full Tilt Update Breaks Poker Copilot; Fix Availab...
- Poker Copilot 2.50 Now Available
- Email of the Day
- Poker Copilot is Two Years Old; 50% Off
- Poker Copilot 2.49 Now Available
- Full Winamax Poker Support Coming
- Poker Copilot Update for PokerStars players
-
►
June
(9)
- A Poker Copilot Update for PokerStars users in Fra...
- New Poker Copilot Discussion Forum
- Poker Copilot 2.46 Now Available
- HUD in Poker Copilot's Hand Replayer
- Programming is Easy? No. It's Really, Really Hard
- Keyboard Controls for Poker Copilot's Hand Replaye...
- Poker Copilot 2.45 Now Available
- France's New Online Poker Laws
- Changes coming for Winamax Poker
-
►
August
(20)
-
▼
2009
(337)
-
▼
June
(29)
- Poker Copilot: One Year Old
- Poker Copilot 2 Early Access Program Update
- Poker Copilot 1.76 Released
- A Lousy Poker Copilot Week - And a New Feature
- Stuff from Aidan + Posterous = Instant New Blog
- Food, Inc
- Poker Copilot HUD always on?
- Sub-Millisecond Query Optimisation
- Poker Copilot 2 Early Access Program Update
- Multi-table HUD demo
- What's Poker Copilot Missing that Hold'em Manager ...
- Finding Memory Leaks in Cocoa + Objective-C
- FastSpring and Credit Card Fraud
- Does Poker Copilot have Ongame Network Support?
- Poker Copilot 2 Early Access Program Update
- Poker Copilot Tutorial in French
- Mac-ify your Full Tilt Poker
- Why does Poker Copilot talk to the Internet?
- Poker Copilot's Crash Reporter
- Sentence of the Day
- What I've Been Reading
- Obscure Sentence of the Day
- Cha-ching!
- Statistic of the Day
- Hero Stats for Current Table Only
- Poker Copilot 1.74 Released
- C is to Java as Java is to what?
- Competitors for Google?
- Poker Copilot goes Cyrillic?
-
▼
June
(29)


0 comments:
Post a Comment