<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Homo-Adminus Blog - Latest Comments in FastSessions Rails Plugin Released</title><link>http://homo-adminus.disqus.com/</link><description></description><language>en</language><lastBuildDate>Fri, 11 Jul 2008 22:17:33 -0000</lastBuildDate><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460866</link><description>We're using postgresql and actually ported it over, except for one problem:  Postgresql does have crc32 as a function.  You can kind of get there by either writing your own or installing the one with ltree.  Postgresql does however have md5.  What we did is setup tests against unique(md5_session_string, session_id), unique(crc32, session_id), and unique(md5_session_byte,session_id).  The last one is a byte representation of the md5 hash.  For random queries, the 1st two implementations ran at about the same speed, which was basically instantaneous.  The byte one definitely showed a little lag, and so would not recommend it.  Finally we created a stored procedure to actually handle the insert/update as postgresql doesn't have a "ON DUPLICATE KEY UPDATE".  The question is whether or not this is faster than just indexing the session_id itself or is something screwy is going on where postgresql is optimizing against the hashed values.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrew Watkins</dc:creator><pubDate>Fri, 11 Jul 2008 22:17:33 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460867</link><description>There is a plugin called SmartSessionStore that does more or less the same and works also with PostgreSQL. I've been using it for almost an year in production with no problems at all.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paolo Montrasio</dc:creator><pubDate>Thu, 15 May 2008 06:51:29 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460865</link><description>What would the impact be for using fast_sessions with MySQL and MyISAM tables as opposed to InnoDB (table vs. row level locking)? Any thoughts?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric</dc:creator><pubDate>Wed, 02 Apr 2008 13:22:33 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460863</link><description>What about using MyISAM for the sessions table. Implications, like for instance, table locking during updates/additions? &lt;br&gt;Unfortunately, my MySQL database was not compiled with InnoDB.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Eric</dc:creator><pubDate>Fri, 28 Mar 2008 16:39:50 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460858</link><description>Of course, it's a little bit artificial case, but when session size exceed 70kb I become error (code 500). Log says that sql connection lost during update operation. &lt;br&gt;After that application don't get back alive, until I delete session record.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andrey</dc:creator><pubDate>Thu, 28 Feb 2008 05:31:53 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460862</link><description>You mentioned turning off sessions from bot requests, but didn't mention how.  Here's my method:&lt;br&gt;&lt;br&gt;[application.rb]&lt;br&gt;# turn off sessions if this is a request from a robot&lt;br&gt;  session :off, :if =&amp;gt; proc { |request| request.user_agentuser_agent =~ /\b(Baidu|Gigabot|Googlebot|libwww-perl|lwp-trivial|msnbot|SiteUptime|Slurp|WordPress|ZIBB|ZyBorg)\b/i }</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Drew Blas</dc:creator><pubDate>Fri, 22 Feb 2008 10:42:09 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460861</link><description>&amp;lt; UNIX_TIMESTAMP(NOW()) - #{seconds}"&lt;br&gt;&lt;br&gt;Note the UNIX_TIMESTAMP around (updated_at) in first part of the comment</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthias</dc:creator><pubDate>Tue, 19 Feb 2008 07:21:04 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460860</link><description>the self.delete_old! method did not work for me. I changed it to:&lt;br&gt;&lt;br&gt;&lt;a href="mailto:@@connection.execute" rel="nofollow"&gt;@@connection.execute&lt;/a&gt; "DELETE FROM #{table_name} WHERE UNIX_TIMESTAMP(updated_at)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matthias</dc:creator><pubDate>Tue, 19 Feb 2008 07:19:53 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460855</link><description>Why don't you just use the cookiestore in rails 2.0? That way you don't need to store sessions in the database at all!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 14 Feb 2008 00:51:06 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460856</link><description>I'm no expert at all on databases, but I'll see what I can do :)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan V.</dc:creator><pubDate>Wed, 13 Feb 2008 15:38:26 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460857</link><description>I do not work with postgres, but patches are welcome :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Scoundrel</dc:creator><pubDate>Wed, 13 Feb 2008 14:02:53 -0000</pubDate></item><item><title>Re: FastSessions Rails Plugin Released</title><link>http://blog.kovyrin.net/2008/02/06/fastsessions-rails-plugin-released/#comment-2460859</link><description>So, this plugin only works with MySQL right? Are you considering supporting other DBs, like postgresql?&lt;br&gt;&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ivan V.</dc:creator><pubDate>Tue, 12 Feb 2008 19:42:06 -0000</pubDate></item></channel></rss>