Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:39:16+00:00 2026-06-07T03:39:16+00:00

I have a large table in mysql, about 1 million records. I’m using a

  • 0

I have a large table in mysql, about 1 million records.

I’m using a dynamic query with different parameters in where clause and order, so i cant use some code like AND id > 34000 LIMIT 10

I have index on my fields in WHERE and LIMIT and ORDER but index doesn’t help alone.

I need a better way than LIMIT 34000, 10, Is there any way to slove offset delay?

I put my table schema but i just copy more usable field without any index, because i’m using dynamic queries.

CREATE TABLE IF NOT EXISTS `p_apartmentbuy` (
  `property_id` mediumint(8) unsigned NOT NULL,
  `dateadd` int(10) unsigned NOT NULL,
  `sqm` smallint(5) unsigned NOT NULL,
  `sqmland` smallint(5) unsigned NOT NULL,
  `age` tinyint(2) unsigned NOT NULL,
  `price` bigint(12) unsigned NOT NULL,
  `pricemeter` int(11) unsigned NOT NULL,
  `floortotal` tinyint(3) unsigned NOT NULL,
  `floorno` tinyint(3) unsigned NOT NULL,
  `unittotal` smallint(4) unsigned NOT NULL,
  `unitthisfloor` tinyint(3) unsigned NOT NULL,
  `room` tinyint(1) unsigned NOT NULL,
  `parking` tinyint(1) unsigned NOT NULL,
  `renovate` tinyint(1) unsigned NOT NULL,
  `address` varchar(255) COLLATE utf8_general_ci NOT NULL,
  `describe` varchar(500) COLLATE utf8_general_ci NOT NULL,
  `featured` tinyint(1) unsigned NOT NULL,
  `l_location_id` smallint(5) unsigned NOT NULL,
  `l_city_id` smallint(4) unsigned NOT NULL,
  `pf_furnished_id` tinyint(2) unsigned NOT NULL,
  PRIMARY KEY (`property_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:39:18+00:00Added an answer on June 7, 2026 at 3:39 am

    the problem with a table with 1 mill records wont be the AND id > 34000 LIMIT 10 or LIMIT 34000, 10 that will up to the Structure and the rest of the query. I.E, you need index, PK, FK to speed up the query, beside that an Order by probably will slow it down, make search like '%text%' it will make your query SLOW. Also it’s up to the table’s Engine

    So don’t expect that changing limit 10 will make a huge difference. There are a couple of tool that will help you to determinate a ‘better’ query, but not all queries works as the same so don’t expect the “best solution” because it doesn’t exists.

    You can use Show create table or Describe select ...... or explain to see what’s going on, or use the command benchmark to see the approximate time of a function that you are applying to improve it

    EDIT:

    Some tools for MySQL
    I’ll recommend you to take a look to this program that will help you with this part of performance.

    • Mysqlslap (it’s like benchmark but you can customize more the result).
    • SysBench (test CPUperformance, I/O performance, mutex contention, memory speed, database performance).
    • Mysqltuner (with this you can analize general statistics, Storage engine Statistics, performance metrics).
    • mk-query-profiler (perform analysis of a SQL Statement).
    • mysqldumpslow (good to know witch queries are causing problems).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large MySQL table (about 750 million rows) and I just want
Say I have a large table, about 2 million rows and 50 columns. Using
I have two large tables in MySQL, one containing about 6,00,000 records and another
I have three large MySQL tables. They are approaching 2 million records. Two of
I have a large mysql table (about 5M rows) on which i frequently insert
I have a question about MySql. I have a table with 7.479.194 records. Some
i have a large mysql database table in which one column contains values ranging
I have a MySQL database with a fairly large table where the products are.
I have a large table with around half a million rows which is taking
The Problem I have a table that's about 2 million rows (at 115 MB)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.