MySQL fetch time optimization -


We have a table with two lakh registers, but it will grow very soon, basically with the respective details in this table. An image contains points of interest. When I am trying to execute the query, which selects spatial points near the query points, the total execution time is too long. The more accurate period / gain = 0.484 seconds / 27.441 seconds and the query is quite simple, which only gives ~ 17000 rows,

My question is:.

  Select fp.fingerprint_id, fp.coord_x, fp.coord_y, fp. Angle, fp.desc1, fp.desc2, fp.desc3, fp.desc4, fp.desc5, fp.desc6, fp.desc7, fp.desc8, fp.desc9, fp.desc10, fp.desc11, fp.desc12, Fp.desc13, fp.desc14, fp.desc15, fp.desc16, fp.desc17, fp.desc18, fp.desc19, fp.desc20, fp.desc21, fp.desc22, fp.desc23, fp.desc24, fp. Desc25, fp.desc26, fp.desc27, fp.desc28, fp.desc29, fp.desc30, fp.desc31, fp.desc32 fingerprint fp from fp.is_strong_point = 1 and (193-40 and 193 + 40 between coord_x ) And (Coordination 49-15 and 49 + 15) limit 1,1000000;   

That's what I have done.

  1. I have tried to change key_buffer_size in my.ini , but did not see much change
  2. its Besides, I have tried to set up coordination and coordination as coordinates, but the query time has slowed down
  3. The table is divided by the area of ​​the coordinating area, which gives me better results.

    How can I reduce the time I get? Is it possible to reduce milliseconds?

    If I am right then really is fast but what is slow is the gain of data from your database. It takes 27 seconds to load 170000 results from your storage.

    It seems that you use the wrong database type, try switching from one database engine to another.

    You can use the memory engine for maximum speed. The only drawback would be that you have to store the copy of that table in another engine if you have to make dynamic changes for it and after any change, you have to reload the differences or the entire table.

    In addition, you have a script that fire when you restart your server so that your memory table

    your mysql server startup Will be loaded on to make

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -