Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This helped me a lot Commented Sep 27, 2021 at 10:36
  • 1
    @Dennis so the table you are joining on or grabbing data from doesn't matter, only the table you INSERT INTO? I definitely just tried this and it is much faster WOW thanks Commented Oct 9, 2021 at 10:03
  • 4
    You don't have to drop the primary key, as there is another solution: partitions. If you will create partitioned table, in that case you will have smaller indexes per partition, and because of that insertion speed will be high. Also it simplifies and speed up the deletion of the old data. Commented Jul 18, 2023 at 21:24