ã¨ããDBãå©ç¨ãããããå¦çããããããã¨ããæã« #ã¹ã¯ãªããã®ä¸é¨å my @list1 = (é©å½ãªãªã¹ããã®1); my @list2 = (é©å½ãªãªã¹ããã®2); foreach my $value1 (@list1){ foreach my $value2(@list2){ #DBã«æ¥ç¶ãã¦ããããã¼ãã«ã®ã¬ã³ã¼ã件æ°countããâ #ãã®çµæãå¥ãã¼ãã«ã«UPDATEããSQLå®è¡å¦ç; } }ã¨ããã¾ããforeachã§ã°ã«ã°ã«ã°ã«ã°ã«åãã¹ã¯ãªãããæ¸ãããã§ããã ã§ãã¾ããããã¯ã½éãã£ããã§ããããã¼ãã«ã®ãã¼ã¿ã¯å ¨é¨ã¡ã¢ãªä¸ã«è¼ã£ã¦ãããã§ããã 10GBï¼1åã¬ã³ã¼ããããï¼ãããã®ãã¼ãã«ã§é çªã«$value1,$value2ã®å¤æ°ãæ¡ä»¶ã«ä½¿ã£ã¦COUNT()ã使ç¨ãã SELECTæãæããã®ã§ãä¸ã¤ã®SQLæãããDBå´ã®CPUã³ã¢ã100%ã«ãªã£ã¦ã
{{#tags}}- {{label}}
{{/tags}}