miyazaki resistance‚’½œ£¦‚ˆ

Download Miyazaki Resistance‚’½œ£¦‚ˆ

Post on 19-May-2015

3.691 views

Category:

Technology

4 download

Embed Size (px)

DESCRIPTION

RubyKaigi2009 Lightning Talk. MiyazakiResistance

TRANSCRIPT

  • 1. Miyazaki Resistance I've developed MiyazakiResistance

2. Tsukasa OISHI 3. Tabelog.com Review site of great restaurants Programmer 4. iPhone ver2.0 I've released iPhone application of Tabelog ver 2.0 5. Main 6. Miyazaki Resistance 7. ActiveRecord Tokyo Tyrant Library like ActiveRecord to use Tokyo Tyrant 8. Tokyo Tyrant 9. Tokyo Cabinet The Package of network interface to Tokyo Cabinet. 10. Tokyo Cabinet? 11. Key Value Strage 12. Table KeyidValuearticle_id : integercount : integercreated_at : datetime 13. ID100 Search access count of article-ID 100 yesterday. 14. Ruby API 15. TTrdb = TokyoTyrant::RDBTBL.newrdb.open(localhost, 1975) 16. query = TokyoTyrant::RDBQRY.new(rdb)query.addcond(created_at, TokyoTyrant::RDBQRY::QCNUMEQ, Time.local(2009, 7, 16).to_i)query.addcond(article_id, TokyoTyrant::RDBQRY::QCNUMEQ, 100) 17. query = TokyoTyrant::RDBQRY.new(rdb)query.addcond(created_at, TokyoTyrant::RDBQRY::QCNUMEQ, Time.local(2009, 7, 16).to_i)query.addcond(article_id, TokyoTyrant::RDBQRY::QCNUMEQ, 100) 18. article_100_count = query.search.first 19. ... orztroublesomeness...orz 20. ! Mottainai! 21. Miyazaki Resistance! 22. ArticleCount.find( :first, :conditions => [restaurant_id = ? created_at = ?,100, Time.local(2009, 7, 16) ) 23. ArticleCount class ArticleCount

View more >