|
From: Dave S. <dst...@ma...> - 2007-02-06 00:14:02
|
Very clever regarding the expire time! With your explanation, I see where = you are going.=20 =20 I think one thing is becoming clear, between the two of our results, we = know memcache works well with SQLGrey ! ;-) =20 Dave Strickler MailWise LLC 617-933-5810 (direct) www.mailwise.com ( http://www.mailwise.com/ ) "Intelligent E-mail Protection" >>> Michael Storz <Mic...@lr...> 10:57 AM Monday, = February 05, 2007 >>> Hi Dave, thanks for your tip. However I do not store SELECT statements in memcached, but only the relevant information, e.g. Feb 5 16:41:09 lxmhs25 lrzgrey_test[2773]: grey: _make_key: digest=3DjrVgw= ImoOnIasrhipprBaw from from_awl:193.220.212.39,technical_support_op_291fv,f= inanzen.sparkasse.de And I use a carefully calculated expiration time, therefore the entry in the cache times out at the same time as a entry in a AWL. And as you can see, I get a tremendous hit rate for the states unknown und throttle. This was my main goal. Getting hits for the AWLs is fine, but for the overall performance not so relevant at least in our case. On Mon, 5 Feb 2007, Dave Strickler wrote: > Michael, > > Be careful about the SELECT statements you store hits on in memcached. > Many SQLGrey SQL statements use a time parameter, and thus, by their > nature, will never be used again (eg. SELECT * FROM table WHERE utstamp > > $now). > > I found when using memcached with SQLGrey that I had to alter the SQL > calls so a result stored in memcahed was not 'time sensitive". Of > course, the makes SQLGrey not as perfect at detecting exact times for > expired records, etc, but I felt this was a worthwhile tradeoff. > > I am currently getting a 40%-50% memcached hit rate with my alterations. > > Dave Strickler > MailWise LLC > 617-933-5810 (direct) > www.mailwise.com ( http://www.mailwise.com/ ) > "Intelligent E-mail Protection" Michael Storz -- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Leibniz-Rechenzentrum | <mailto:St...@lr...> Boltzmannstr. 1 | Fax: +49 89 35831-9700 85748 Garching / Germany | Tel: +49 89 35831-8840 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job = easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as ( http://sel.as/ )-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&b= id=3D263057&dat=3D121642 _______________________________________________ Sqlgrey-users mailing list Sql...@li...=20 https://lists.sourceforge.net/lists/listinfo/sqlgrey-users This message has been certified virus-free by MailWise Filter - The real-ti= me, intelligent, e-mail firewall used to scan inbound and outbound messages = for SPAM, Viruses and Content. =0A=0A For more information, please visit: http:= //www.mailwise.com=0A |