提交 9ec39568 编写于 作者: J James Lopez

use select_values

上级 adcff298
......@@ -41,7 +41,7 @@ module Projects
end
def project_ids_batch
Project.connection.execute(
Project.connection.select_values(
<<-SQL
SELECT id
FROM projects
......@@ -53,7 +53,7 @@ module Projects
)
LIMIT #{BATCH_SIZE}
SQL
).to_a.flatten
)
end
def service_hash
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册