why not use an order by and a limit 1? How big can this table be?