SQL query to select million records quickly

后端 未结 4 1029
[愿得一人]
[愿得一人] 2021-02-04 22:03

I want to select million records from a table and I am using select query for this.

Currently it is taking a few minutes to get data. Can I get it quickly?<

4条回答
  •  余生分开走
    2021-02-04 22:29

    The speed of the query depends on the number of rows but if you do appropriate optimizations taking the performance factors such as:

    1. Indexing Clustered/Non clustered
    2. Data Caching
    3. Table Partitioning
    4. Execution Plan caching
    5. Data Distribution

    the query will execute faster.

提交回复
热议问题