in reply to Use of fetchall_hashref

If you only need a certain value for the "id" column, it's best to only query that value from the databases instead of reimplementing the search in Perl.