How to improve MySQL query execution time -


i having issue query, taking around 14 seconds execute, , need faster.

is there anyway can optimize it?

select * large_table ( inet_aton( 'record number' ) between inet_aton( starting_number ) , inet_aton( ending_number ) ) limit 0 , 30 

even if the column used criteria/filter indexed still result in full scan of table because of inet_aton() function. try this.

    select inet_aton(`record number`)     large_table          'record number'      between starting_number      , ending_number      limit 0 , 30 

Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -