11.09.2016, 16:21
You're doing two things wrong:
Database id's can and will be non consequential. It's common to have 5 objects with id's 1235, 1267, 1289, 1319. That's why you never should use database id as an array index. Second thing: you're calling 6 queries for 5 objects. And 5 of those are unthreaded. That's terrible.
Database id's can and will be non consequential. It's common to have 5 objects with id's 1235, 1267, 1289, 1319. That's why you never should use database id as an array index. Second thing: you're calling 6 queries for 5 objects. And 5 of those are unthreaded. That's terrible.

