Poker-AI.org Poker AI and Botting Discussion Forum 2014-05-27T07:46:10+00:00 http://poker-ai.org/phpbb/feed.php?f=26&t=2665 2014-05-27T07:46:10+00:00 2014-05-27T07:46:10+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=6051#p6051 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]>
I was pretty much a complete noob, when it came to SQL. The bottleneck was (like it is often) the data transfer. Most stats are just a ratio of sums of things, like SUM(VPIP Flag) / SUM(Hands) but I have been transferig lanrge data sets into my ResultSet object and I was later looping through it in Java.

Now I use SUM() in my SQL statements and only transfer a single integer to Java. It brough the computation of some stats from 340ms down to 1ms, should be fast enough now.
You should do most of your computation in SQL if you have similar problems and filter the data as much as possible with WHERE statemets.

Statistics: Posted by HontoNiBaka — Tue May 27, 2014 7:46 am


]]>
2013-12-20T11:45:14+00:00 2013-12-20T11:45:14+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5543#p5543 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Fri Dec 20, 2013 11:45 am


]]>
2013-12-17T17:47:01+00:00 2013-12-17T17:47:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5532#p5532 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by ibot — Tue Dec 17, 2013 5:47 pm


]]>
2013-12-17T09:36:02+00:00 2013-12-17T09:36:02+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5531#p5531 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Tue Dec 17, 2013 9:36 am


]]>
2013-12-16T16:04:11+00:00 2013-12-16T16:04:11+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5525#p5525 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Mon Dec 16, 2013 4:04 pm


]]>
2013-12-15T19:54:36+00:00 2013-12-15T19:54:36+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5520#p5520 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Sun Dec 15, 2013 7:54 pm


]]>
2013-12-15T00:06:39+00:00 2013-12-15T00:06:39+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5512#p5512 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by maikon — Sun Dec 15, 2013 12:06 am


]]>
2013-12-14T13:22:18+00:00 2013-12-14T13:22:18+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5505#p5505 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Sat Dec 14, 2013 1:22 pm


]]>
2013-12-14T02:05:17+00:00 2013-12-14T02:05:17+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5492#p5492 <![CDATA[Re: Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by corintio — Sat Dec 14, 2013 2:05 am


]]>
2013-12-12T09:32:28+00:00 2013-12-12T09:32:28+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2665&p=5484#p5484 <![CDATA[Is it safe to connect to postgreSQL on VM from host?]]> Statistics: Posted by HontoNiBaka — Thu Dec 12, 2013 9:32 am


]]>