Well, you are retrieving 32k records into your application, it has to take time. Did you create an index on the `id` field in your table?