ãµã¤ãã®Redshiftããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã° @ AWS Casual 02, 2014-04-18Read less
ãµã¤ãã®Redshiftããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã° @ AWS Casual 02, 2014-04-18Read less
11æã®19,20æ¥ã«éå¬ãããWebDB Forumã«åå ãã¦ãããã«ã³ãã¡ã¬ã³ã¹ãã®ãã®ã¯ãããããªäººã«ä¹ ãã¶ãã«ä¼ãããããããä¸ã§ãªãã¨ãªãç¥ã£ã¦ãã¦ã話ãããã¨ãªãã£ã人ã¨è©±ããããæå¤ãªäººã®æå¤ãªä¸é¢ãã¿ããã¨ãã§ãããã¨ãã¨ã¦ã楽ãããã¨ãã§ãããç«å ´ã¨ãã¦ã¯æå±ãã¦ããä¼ç¤¾ã®ã¹ãã³ãµã¼æ ã§åå ãã¦ç®çããã£ã¦çºè¡¨ããã¦ããããã ããããã¤ãæãã¨ãããããã®ã§ããã«ã¾ã¨ãã¦ããããã ç¾å®ã«ã¢ã«ãããã¯ã§èµ·ãã¦ããã㨠WebDB Forumã¨éæã£ã¦ã¯ãããã®ã®ããã¼ã¿ãã¼ã¹ã«é¢ããç 究çºè¡¨ã¯é常ã«å°ãªããOSããããã¯ã¼ã¯ãã·ã¹ãã ç³»ã®ç 究ã¨ä½µãã¦ããæ©æ¢°å¦ç¿ãNLPãWebãªã©ã®æè¡ã«æå¿ãæã¤äººã¯å¤ãæ°ã§å§åããã¦ãããä½æã§ã¯ 90% ã ããããããã°å¥ã« VLDB ã SIGMOD ãªã©ã®ãããã«ã³ãã¡ã¬ã³ã¹ããã¼ã¿ãã¼ã¹ã®æè¡ãç´æ¥æ±ããã¨ã¯å°ãªããããã¼ã¿ã
ãªã SQL_CALC_FOUND_ROWS ã LIMIT OFFSET ã®ãã¼ã¸ã³ã°ãè¯ãç¡ãã®ã ããæè¿ã®å¤§è¦æ¨¡ãµã¼ãã¹é¢é£ãããã¼ã¿ãã¼ã¸ã³ã°èã§ãã mysql 5.5.34 ã§è©¦ãã¦è¨äºæ¸ãã¦ã¾ãã bigdata ãã¼ãã«ã¯ id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (id) ãªã«ã©ã ãããåæã§ãããã¡ãã InnoDB ã§ãã 2014å¹´ãªãã ããCOUNT(*)ã¨ãSQL_CALC_FOUND_ROWSã¨ãLIMIT OFFSETã®ãã¼ã¸ã³ã°ã¯ããããã - Togetterã¾ã¨ããçºç«¯ã«ã¿ãããã©ãããã¨æãã話ããã¦ãäºãªãã ãã©ããnippondanji SQL_CALC_FOUND_ROWSãã§ã°ã°ã£ã¦ãæç¨ãªæ å ±ãªããææ¸åããã¦ãªããããã¨ãã ãã¼ã¸ã³ã°å¦çã§ä½¿ãããã¡ãªæ©è½ã§ãã S
ãªã¬ã¼ã·ã§ãã«ã¢ãã«ãå®è·µããã«ã¯ããã¡ã¤ã³ï¼âãã¼ã¿åï¼ãå¦ä½ã«æ£ããè¨è¨ãããã¨ãããã¨ã極ãã¦éè¦ã«ãªããããããªããããã¡ã¤ã³ãã©ãè¨è¨ãã¹ããã¨ããè°è«ã¯ãã¾ãããã¦ããªãããã«æãããã®çµæããã¡ã¤ã³ã«ã¤ãã¦ã®ç解ã¯ãã¾ãé²ã¾ãããã¼ã¿ãã¼ã¹è¨è¨ã«å¤±æãã¦ãããã¿ã¼ã³ãå¤ãããã«æãããã ã¨ããããã§ä»æ¥ã®ãã¼ãã¯ãã¡ã¤ã³ã§ããã éåãå®ç¾©ãããªã¬ã¼ã·ã§ãã«ã¢ãã«ã«ããããã¼ã¿åã¨ã¯ä½ãããªã¬ã¼ã·ã§ãã«ã¢ãã«ãå®è·µããã«ã¯ã¾ããã®ç¹ããç解ããå¿ è¦ãããã ãªã¬ã¼ã·ã§ãã«ã¢ãã«ã§ã¯ããã¼ã¿åã¯ãã¡ã¤ã³ã¨å¼ã°ããããã¡ã¤ã³ã¨ã¯ããã®å±æ§ï¼âã«ã©ã ï¼ã«å ¥ãã¹ãå¤ã¯ã©ããã£ããã®ããéåã¨ãã¦å®ç¾©ãããã®ã ãè¨ãæããã¨ãå±æ§å¤ã¨ã¯ããéåã®è¦ç´ ã®ä¸ã¤ã§ããã¨è¨ãããå¾ã£ã¦ããã¡ã¤ã³ãè¨è¨ããéã«ã¯ãSQLã§è¨ãã¨ããã®ãã¼ã¿åãã¤ã¾ãINTãCHARã¨ãã£ããã®ã ãã§ãªãããã®
ã¯ããã« Djangoã使ã£ãã¢ããªã±ã¼ã·ã§ã³ã§ã2ã¤ã®ãããå¦çç¨ããã»ã¹AãBãåæã«ç«ã¡ä¸ããã¨ãã«ãAã®ãã©ã³ã¶ã¯ã·ã§ã³ã§save & commitããå¤ãBã§ã¯èªã¿åããªãã¨ããåé¡ã«ç´é¢ãã¾ããã åé¡ã®ç®æã®ã½ã¼ã¹ã³ã¼ãã¯ãã®ãããªæãã§ãã å®è¡é ããã»ã¹A ããã»ã¹B 1 with commit_on_success(): p = Post(id=1) p.save() 2 # saveãããã¼ã¿ãè¦ãã Post.objects.get(id=1) 3 with commit_on_success(): p = Post(id=2) p.save() 4 # saveãããã¼ã¿ãè¦ããä¾å¤çºç Post.objects.get(id=2) Djangoã§ã¯ããã©ã«ãã§èªåã³ããããæå¹ãªã®ã§ãAã§ã³ãããããå¤ãBã§èªã¿åããã¯ãã¨æã£ã¦ããã®ã§ãããããã¯ééãã§ã
Takayuki Shimizukawa @shimizukawa @masa_edw ã³ãã¯ã·ã§ã³ãã¼ã«ãç¡ãå ´åã使ãçµãã£ãã³ãã¯ã·ã§ã³ãå³è§£æ¾ãããªãï¼è§£æ¾ã¾ã§å¤å°é 延ããï¼ã®ã§å®éã«ä½¿ã£ã¦ããã³ãã¯ã·ã§ã³ã®æ°ããå¤ãåå¨ããããã®åã¡ã¢ãªãå§è¿«ãã¦å¹çãæªããã£ã¦ãã話ã¯èãããã¨ããããï¼è¦åºå ¸ 2013-09-04 09:27:28 ãã¤ãã¼ãã¨ã @masa_edw @voluntas ç¾ç¶ã§å¿ è¦ãªç¶æ³ã¯ç解ãã¦ãã¾ããããªããããªãã®ãç解ãã¦ããªãã¨ãããã¨ã§ããä»ã«ããã¨ãã°ãbitlyã®å¼ã³åºãã¯ã³ãã¯ã·ã§ã³ãã¼ã«ã使ãã¹ããï¼ãªã(ã¹ããã¹ãã§ãªã)ã®ãï¼ã©ãããè¦è«ã§ãããªã®ãï¼ã¨è¨ãåãã«åã¯çãããã¾ããã 2013-09-04 09:31:22
ã¨ã³ã¿ã¼ãã©ã¤ãºã·ã¹ãã ã®ã¨ã³ã¸ãã¢ããã£ã¦ï¼ï¼å¹´ä»¥ä¸ãæãã¨ãããæ¸ãã¦ããã¾ãããã®ä»è¶£å³ãå°ã ããã DBã®ä¸çã«èµ·ãã大ããªæ³¢ ç¾å¨ãã©ã®è£½åã使ã£ãã¨ãã¦ãRDBã®æ§è½åé¡ã¯å¿ ãã¨ãã£ã¦ããã»ã©çºçãããçç±ã¯ç°¡åã§ãCPUããããã¯ã¼ã¯ãé«éåï¼CPUã¯ãã«ãã³ã¢åããããã¯ã¼ã¯ã¯10G-Ethernetã®ä¸è¬åãInfiniBandãªã©ï¼ããã®ã«ãã£ã¹ã¯ï¼ã¹ãã¬ã¼ã¸ï¼ãé«éåã«è¿½ãã¤ãã¦ããªãããã ããã®å·®ãåããå½¹å²ã¨ãã¦ãRDBãæ ã£ã¦ããã±ã¼ã¹ãå¤ããæ§è½åé¡ã«ãªãã±ã¼ã¹ãæ£è¦ãããã ã ããããããæ代ã®æµãã«å¯¾ãã¦å¤§ããªå¤é©ãèµ·ãããã¨ãã¦ãããSSDã¯ããªãã³ã¢ãã£ãã£åãã¦ããã®ã§è¨ãã«åã°ãã¨ãã£ãæãã ããå人çã«ã¯éããã®ã®ãã£ã¹ã¯ã®ç½®ãæãã«ãããªãã¨æã£ã¦ãããã¤ã¾ããSSDã¯éããDBã®ã¢ã¼ããã¯ãã£ã«å¤§ããªå¤é©ããããããã®ã§ã¯ãªããããããã«ãã¦
Zoff PCã®ã«ã©ã¼ã¿ã¤ãç¼é¡ãæç¨ãã¦ããã¤ã³ãã©å ¼ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã®bokkoã§ãã å¤ä¼ã¿ã¯å±±ç»ã -> 温æ³ã§æ ã èªé©ã«éããã¦ã¾ããããä¼ã¿æãããçèçã§ä½ã®ãã¡ãã¡ãçãã§ã(><)ã ä»åã¯pixivã§æ´»ç¨ãã¦ãããã¼ã¿ã¹ãã¢ããã®å¨è¾ºããã«ã¦ã§ã¢ã®è©±ã3åãããã«åãã¦ãããã¨æãã¾ãã pixivãæ¯ãããã¼ã¿ã¹ã㢠pixivã§ã¯ä¸»ã«ä»¥ä¸ã®2ã¤ããã¼ã¿ã¹ãã¢ã¨ãã¦æ´»ç¨ãã¦ãã¾ãã MySQL KyotoTycoon MySQL pixivã§ã¯ã¦ã¼ã¶ãã¤ã©ã¹ããããã¯ãã¼ã¯ããããã¯ãããã«é¢é£ããæ å ±ã¨ãã£ããµã¼ãã¹ã®æ ¹å¹¹ã«é¢ãããã¼ã¿ã¯MySQLã«ä¿åãã¦ãã¾ãã ããã¯MySQLã®é«ãä¿¡é ¼æ§ã®ã»ãã«ããã¯ã·ã社å ã§MySQLã®éç¨ã«é¢ãããã¦ãã¦ãèç©ããã¦ããããèªä½ã®éç¨ãã¼ã«ç¾¤ãå å®ãã¦ããã¨ããã®ã大ããªçç±ã§ãã KyotoTycoon Kyot
ãã®ã¨ã³ããªã¯ãã¶ãã«ç ½ãè¦ç´ ãå«ãã¦ãã¾ãããæå³çãªãã®ã§ããå㯠NoSQL ã¯ç´ æ´ãããã¨æãã¾ãã ãã¦ãNoSQL ãªãã¦è¨èã«è¸ãããã¦ã人ã¯ç½®ãã¨ãã¦ãæè¿ RDBMS 以å¤ã®ãã¼ã¿ã¹ãã¢ã¨ããã®ãè²ã ã§ã¦ãã¦ã¾ããä»æç¹ã§è¦æ¸¡ãéãã«ããã¦ã¯ãå®å®æ§ãèé害æ§ãããã©ã¼ãã³ã¹ãæ å ±éãéçºè ã®æ £ããå ¨ä½ã®ãã©ã³ã¹ã§è¨ãã° RDBMS ã«ããªããã®ã¯ãªãããã§ãããä»å¾ã©ããªã£ã¦ãããã¯ã¾ãåããã¾ããã ä¸æ¹ã§ãRDBMS ãã©ããã¦ãè¦æã¨ããåéã¨ããã®ã¯åå¨ãã¾ããä¾ãã° 1 ãµã¼ãã«åã¾ããããªãæ§ãªå¤§å®¹éãã¼ã¿ã«å¯¾ãããããå¦çããªã¢ã«ã¿ã¤ã ãªã©ã³ãã³ã°ãã¢ã¯ãã£ããã£ãªã©ã®ãã£ã¼ãæ å ±ãããã¦æ§é åããããã¼ã¿ã®åãæ±ããä½ã§ãããã§ã NoSQL ã«ç½®ãæããã°ãããªãã¦èãã¯ç¾æç¹ã§ã¯å°åºåãå ¥ããããã§ãããä¾ã¨ãã¦æããæ§ãªãã³ãã¤ã³ããªé¨åã§ã¯ããã«
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}