Miyazaki Resistance‚’½œ£¦‚ˆ

download Miyazaki Resistance‚’½œ£¦‚ˆ

of 30

  • date post

    19-May-2015
  • Category

    Technology

  • view

    3.693
  • download

    4

Embed Size (px)

description

RubyKaigi2009 Lightning Talk. MiyazakiResistance

Transcript of Miyazaki Resistance‚’½œ£¦‚ˆ

  • 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