What you're trying to achieve is easily doable by mysql itself but depends a lot on different things.
- the engine you use for your tables
- the version of mysql
- the setup of the database server (MAMP,WAMP,XAMP, standalone, etc.)
- the cache settings on the mysql instance
- the other queries that run on your server
- the state sharding/partitioning of your table(s)
- etc.
You will need to be more precise I'm afraid.