Queue monitor: Get only the fields we need

This commit is contained in:
Eelco Dolstra 2015-06-11 18:09:50 +02:00
parent c974fb893b
commit f9cd5adae8

View file

@ -424,7 +424,7 @@ void State::getQueuedBuilds(Connection & conn, std::shared_ptr<StoreAPI> store,
{
pqxx::work txn(conn);
auto res = txn.parameterized("select * from Builds where id > $1 and finished = 0 order by id")(lastBuildId).exec();
auto res = txn.parameterized("select id, project, jobset, job, drvPath from Builds where id > $1 and finished = 0 order by id")(lastBuildId).exec();
for (auto const & row : res) {
auto builds_(builds.lock());