GitLabã®ã¹ãã¼ã¯ã¨ãªãé§éãããã¼ã¸ãªã¯ã¨ã¹ããéãã¾ãã
GitLabã«ãã¼ã¸ãªã¯ã¨ã¹ããéã£ã¦ã¿ã¾ããã
以åã®çµé¨ããGitLabã®éçºãã¼ã ã¯GitHubã¯ã»ã¼è¦ã¦ãªããã¨ãç¥ã£ã¦ããã®ã§GitLabããéã£ã¦ã¿ã¾ããã
ã¡ãªã¿ã«ä¸ã®ã¨ã³ããªã«åºã¦ããGritã使ããã¦ããç®æã¯ç¾å¨ã§ã¯ãã¹ã¦Ruggedã«æ¸ãæãã£ã¦ããã®ã§ç¶æ³ã¯å¤ãã£ã¦ãã¾ãã
ãã¼ã¸ãªã¯ã¨ã¹ãéã£ãï¼ / â'created_at DESC' is performed twice (#825) | Merge Requests | http://t.co/LLbgkxK7A7 / GitLab Commâ¦â http://t.co/F91TCk67US
— å¥åº·è¨ºæ@4/26 (@catatsuy) 2015å¹´6æ16æ¥
GitLabã®äººãã¡ã¯GitHubè¦ã¦ãªãã®ã§ã¡ããã¨GitLabããéã£ã
— å¥åº·è¨ºæ@4/26 (@catatsuy) 2015å¹´6æ16æ¥
GitLabã¯GitHubã§ãã°ã¤ã³ããæ©è½ããã£ã¦æå¿«ãªæãã§ããï¼SSHã®éµãã¤ã³ãã¼ãããæ©è½ã¯ç¾æç¹ã§ã¯ãªãããã§ãï¼ã
GitLabã¯GitHubã§ãã°ã¤ã³ããæ©è½ããã£ã¦æå¿«
— å¥åº·è¨ºæ@4/26 (@catatsuy) 2015å¹´6æ16æ¥
èå¿ã®å 容ã§ããããªãã社å ã®GitLabãé ããªã£ã¦ããã®ã§ãããã調æ»ããã¦ããã¨ããMySQLã«é ãã¯ã¨ãªããããã¨ã«æ°ä»ãã¾ããã
ãã®ã¯ã¨ãªã¯ä»¥ä¸ã®æ§ãªæãã«ãªã£ã¦ãã¾ããã
SELECT `events`. * FROM `events` WHERE ( `events`.`author_id` IS NOT NULL ) AND `events`.`project_id` IN ( 10 ,9 ,8 ) ORDER BY `events`.`created_at` DESC ,`events`.`id` DESC ,created_at DESC LIMIT 20 OFFSET 0 ;
ããè¦ãã¨created_at DESC
ã2ã¤ããããRailsã®ActiveRecordã®è¦åããé¸è±ãã¦ããã®ã§ä½ãä¸ç©ãªæãããã¾ããæ¬æ¥ãªã以ä¸ã®ããã«ãªã£ã¦æ¬²ããã§ãã
SELECT `events`. * FROM `events` WHERE ( `events`.`author_id` IS NOT NULL ) AND `events`.`project_id` IN ( 10 ,9 ,8 ) ORDER BY `events`.`created_at` DESC ,`events`.`id` DESC LIMIT 20 OFFSET 0 ;
ã¨ãããã¨ã§èª¿ã¹ãã¨ä¸ç©ãªæãã®ã¡ã½ãããããã¾ããã
created_at DESC
ãç´æ¥æååã§æ¸¡ãã¦ããã®ã§Railsãæ¢ã«ä»ãã¦ããå ´åã§ãå¤æã§ããã«2éã«ä»ãã¦ãã¾ãã¾ããRailsã®æ©è½ã§ä»ããã°2éã«å¼ã³åºãã¦ã2éã«ä»ãããã¨ã¯ãªãã®ã§ã¡ããã¨Railsã®æ©è½ã使ã£ã¦ããã¾ãã
2éã«ã¤ãã¦ãåé¡ãªããªãããã®ã§ãããMySQLã®å ´åã ã¨SQLã®å®è¡è¨ç»ããããããªã£ã¦å ¨è¡ãè¦ãããã«ãªã£ã¦ãã¾ãã¾ãã1ã¤ã ããªãæ©ãã¯ã¨ãªã§ãã
æ©ããã¼ã¸ãããã¨ãããªã¼
ãã®MRãåãè¾¼ãã¨è¬ã®ã¹ãã¼ã¯ã¨ãªãé§éãããã®ã§ã¿ããªå¿æ´ãã¦æ¬²ãã
— å¥åº·è¨ºæ@4/26 (@catatsuy) 2015å¹´6æ16æ¥
@catatsuy Beforeã ããããªãã¦Afterãæ¸ãã¨ããã®ã§ã¯ï¼ï¼ e.g. https://t.co/Af8jBCDxS5
— Ryuta Kamizono (@kamipo) 2015å¹´6æ16æ¥
@catatsuy good job!
— Ryuta Kamizono (@kamipo) 2015å¹´6æ16æ¥