Use the power of recursive SQL statements in your Rails application. When you have tree based data in your application, you always to struggle with retrieving data. There are solutions, but the always ...
I'm trying to implement this recursive CTE on postgresql: WITH RECURSIVE a AS ( SELECT categories.id,categories.parent_id FROM categories WHERE categories.name LIKE('act%') UNION SELECT categories.id, ...
「更新とJOINが多ければMySQL,シンプルなSELECT主体ならPostgreSQLが向いている。ストアド・プロシージャでシングル・コネクションならFirebirdは非常に速い」---6月23日に開催された「オープンソースカンファレンス2007.DB(OSC2007.DB)」で,各オープンソースDBの ...