äºä¾ å®éã«ã¢ããªã±ã¼ã·ã§ã³éçºãè¡ã£ã¦ãã¦ãæ¤ç´¢æ©è½ãå®è£ ãã¦ããã¨ãã«è¶ 絶éãæ¤ç´¢ãã¸ãã¯ã«åºä¼ãã¾ããã ãã®å¯¾å¦ãSQLæã®æ¹åã§è¡ãªã£ãã®ã§ç´¹ä»ãã¾ãã ãã¼ã¿æ§é ç°å¢ MySQL 4.1 mysql> DESCRIBE users; +-------+-------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-------+-------------+------+-----+---------+----------------+ | id | int(11) | | PRI | NULL | auto_increment | | name | varchar(40) | YES | | | | +-------+-------
æ¥æ¬ã§ã¯ãã¾ãã¡äººæ°ã®ãªã Facebook ã§ããã主ã«æµ·å¤â¦è±èªåã§ã¯ Google ããæãã»ã©ã®PVãèªã Facebook ã®äººæ°ï¼å©ç¨ãå¤ããµã¼ãã¹ãã¨ãããããã®å¤§è¦æ¨¡ãªãµã¼ãã¹ã«æé·ãã¦ããã®ã§ããæ¤ç´¢ãããå¤ãã£ã¦ã©ã®ä½ã®ï¼ç´å ¨ä¸çã®4å人以ä¸ãå©ç¨ãã¦ããã¨ããããã®ãFacebookãªã®ã§ãã * å ¨ä¸çã®4å人以ä¸ã®ã¢ã¯ãã£ãã¦ã¼ã¶ã¼ã® 50ï¼ ã¯ãã¤ããã°ãªã³ãã¦ãã * å¹³åçãªã¦ã¼ã¶ã¼ã¯130人ã®ãã¬ã³ããæã¡ã13ã®ã°ã«ã¼ãï¼ã³ãã¥ããã£ï¼ã®ã¡ã³ãã¼ã«ç»é²ãã¦ãã * æ¯é±50åã®ã³ã³ãã³ãï¼ãªã³ã¯ããã¥ã¼ã¹ãããã°æ稿ããã¼ããåçãªã©ï¼ãå ±æããã¦ãã * å¹³åçãªã¦ã¼ã¶ã¼ã¯æ¯æ4ã¤ã®ä¼æ¥ãå人ã®ãã¼ã¸ãªã©ã®ãã¡ã³ã«ãªã ã ããã§ãã ãã®äººæ°ã® Facebook ããdeli.cio.us ãªã©ã§æåã¨ãªã£ã ã½ã¼ã·ã£ã«é¢é£ãã©ã°ã¤ã³ãå°å ¥ãã¦ãã¾ããã
AppBankããã§é£è¼æ²è¼ä¸ã®ãFacebookç¹éã®å½±é¿ã§ãFacebookå©ç¨è ãæ¥å¢ä¸ã®ããã§ãâªãç§ãå°ãåã«ã¢ã«ã¦ã³ãã¯åå¾ãã¦ãã¾ããããæ¾ç½®ç¶æ ã§ããããããæ©ã«ãããã使ã£ã¦ã¿ããã¨æãã¾ãâªã ã¿ãªãããåãããã«ç©æ¥µçã«ãã£ã¬ã³ã¸ããã¦ããããã§ããã®é±æ«ã®ãä¼ã¿ã ãã§ããåéãä¸æ3å以ä¸ã«ãªãã¾ãã(*^_^*)ããã®å¢ãã§Facebookã¦ã¼ã¶ã¼ãå¢ããã¨é¢ç½ãäºã«ãªãããããã¾ãããã Twitterãã¯ããã¯ããä½ãé¢ç½ãã®ãããããªããã¨æã£ã¦ãã¾ãããããã©ãã¯ã¼ãå¢ãã¦ã³ãã¥ãã±ã¼ã·ã§ã³ãçã¾ããã¨ããã«é¢ç½ããåºã¦ãããã¨ãæãåºãã¨ãFacebookãåãããã«ãã¾ãã¯å人ãå¢ããã¿ãã¨é¢ç½ããåãã£ã¦ããã®ããããã¾ãããã ãã¦ãåç½®ããé·ããªã£ã¦ãã¾ãã¾ããããFacebookã®Likeãã¿ã³ï¼æ¥æ¬ã§ã¯ããããï¼ããã¿ã³ï¼ãã²ã¨ã ããã°ã«ãè¨
1. é¢æ°ãªãã¸ã§ã¯ãã¨ã¯ ããã¾ã§ãRuby ã®ã¤ãã¬ã¼ã¿ãããããããã¯ä»ãã¡ã½ãããã«ã¤ãã¦è¦ã¦ããã Ruby ã®ãããã¯ä»ãã¡ã½ããã¨ã¤ãã¬ã¼ã¿ - yield ã®æ§ã ãªä½¿ãæ¹ Ruby ã®ã¤ãã¬ã¼ã¿ (2) â Enumerable 㨠Comparable ã¢ã¸ã¥ã¼ã« ä»åã¯ãä»ã®è¨èªã§ãé¢æ°ãªãã¸ã§ã¯ããã¨å¼ã°ãããã®ãçæããããã®ãProc ã¯ã©ã¹ã«ã¤ãã¦èª¿ã¹ãã Proc - Rubyãªãã¡ã¬ã³ã¹ããã¥ã¢ã« ã«ããã¨ã Proc ã¯ãããã¯ãã³ã³ããã¹ã(ãã¼ã«ã«å¤æ°ã®ã¹ã³ã¼ããã¹ã¿ãã¯ãã¬ã¼ã )ã¨ã¨ãã«ãªãã¸ã§ã¯ãåããæç¶ããªãã¸ã§ã¯ãã§ãã Ruby ã®è§£èª¬ãåãã¦èªãã ã¨ããProc ã¯ã©ã¹ã¯åããã«ããã£ããåæã«ã以ä¸ã®é ç®ãç解ããããã£ãã ã¤ãã¬ã¼ã¿ ãããã¯ä»ãã¡ã½ãã Proc ãªãã¸ã§ã¯ã proc lambda{} &å¤æ° ä»æãã°ããããã
å®è·µãã¤ããã©ã¼ãã³ã¹MySQL 第2çã¨Linux-DBã·ã¹ãã æ§ç¯éç¨å ¥éãèªãã§ã MySQL ã®ã¤ã³ããã¯ã¹ã«ã¤ãã¦åå¼·ããªããã¦ãããç解ãææ§ã ã£ãé¨åã®ç¥èãæ·±ããããããèªåã®ééãã«æ°ã¥ããããã¦ãã¨ã¦ãåç©«ãå¤ãã ãã«ãã¼ãã«ã¹ãã£ã³ã¨ãã«ã¤ã³ããã¯ã¹ã¹ãã£ã³ Linux-DBã·ã¹ãã æ§ç¯éç¨å ¥é P185 ã«æ¸ãã¦ããã±ã¼ã¹ãã¤ã³ããã¯ã¹ãå©ç¨ãã¦ã¦ã対象ã¬ã³ã¼ãæ°ãå¤ãã¨ã©ã³ãã I/Oã大éã«çºçãã¦é ããªããèªãã¹ãã¬ã³ã¼ãæ°ãå¤ãã®ãªãã°ãã«ãã¼ãã«ã¹ãã£ã³ã®ã»ããI/Oä¸åã§å¤ãã®ãããã¯ãèªã¿è¾¼ããã®ã§éãã IGNORE INDEX ãã³ããä¸ãã¦ããã©ã¼ãã³ã¹ãæ¹åããã¨ããä¾ããã£ãã ãã«ãã«ã©ã ã¤ã³ããã¯ã¹ã¨ç¯å²æ¤ç´¢ SELECT * FROM users WHERE a = ? AND b >= ? and (c IS NULL OR c >=
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}