How to use partitioning to improve performance of large tables

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 26

  • @mohanlalsinha8767
    @mohanlalsinha8767 3 года назад +2

    Thank you so much to explanation of partition and un-partitioned table practically..
    Regards
    Mohan

  • @kennethgardzinski
    @kennethgardzinski 5 лет назад +3

    im just going to go ahead and.... say thank you this was very helpful :)

  • @neeraajsharma
    @neeraajsharma 3 года назад +1

    Quite old but relevant, people fail to understand the concept of partition and indexing and most of the time mismatch it and create lots of confusion, I`ll give this link as a POC how these are different concepts.

  • @gtosXD
    @gtosXD 7 лет назад +1

    VERY NICE VIDEO! It's really help me!

    • @JayanthKurup
      @JayanthKurup  7 лет назад

      Alfeu Duran thank you glad you liked it

  • @JayanthKurup
    @JayanthKurup  7 лет назад +1

    hi Javed ,I am able to view the video, could you let me know what your seeing on your screen and I'll try to help fix it.

  • @devakumar2911
    @devakumar2911 7 месяцев назад

    How can I create Patition key on a existing table ? Can we create 2 partition keys on a single table ?

    • @JayanthKurup
      @JayanthKurup  2 месяца назад +1

      You can partition existing tables. While its not possible to have two columns in the Partition Key the same effect can be achieved by concatenating the columns... for example if you have
      Year | Month | OrderDate
      2024 | 04 | 2024-01-01
      2024 | 03 | 2023-03-03
      the same can be partitioned by Year and Month by adding a new column as shown below
      Year | Month | OrderDate | YearMon
      2024 | 04 | 2024-01-01 | 202404
      2024 | 03 | 2023-03-03 | 202403
      Please remember that this logic partitions well only because numbers are order correctly
      Year | Month | OrderDate | YearMon
      2024 | 04 | 2024-01-01 | 042024
      2024 | 03 | 2023-03-03 | 032024
      will result in a totally different partitioning happening

  • @saipraneeth329
    @saipraneeth329 2 года назад

    I was trying to creat new partition on new table..Can tell me weekly partition Statment query.

    • @JayanthKurup
      @JayanthKurup  2 года назад

      For weekly partition you can use a datepart function I'm SQL server and create a new column called weekno. This should be then be concatenated with year so that first week of 2022 will look like 202201

  • @CalitranoN
    @CalitranoN 4 года назад

    thank you is there a link to the samples... this was really good i want to try it...!!!

    • @JayanthKurup
      @JayanthKurup  4 года назад

      Hi CalitranoN
      I have created a brand new video with better audio , a ready to use script and a simpler example below
      ruclips.net/video/Z9bq7i2yp1Y/видео.html
      Please have a look at the description to checkout the script.
      Hope this helped

  • @javed27dec
    @javed27dec 7 лет назад +1

    What is the if not able to see the screen.. please check.

  • @shatabdidey3056
    @shatabdidey3056 4 года назад

    Why adding a clustered index caused delay in count (*) query as compared to the Heap table

    • @JayanthKurup
      @JayanthKurup  4 года назад

      Hi check out this shorter video which explains the whole thing with scripts that you can try your self.
      ruclips.net/video/Z9bq7i2yp1Y/видео.html
      The main performance improvement comes from partition elimination as explained in the above link.
      It summarize every thing from all four videos into one single 20 min video.

    • @JayanthKurup
      @JayanthKurup  4 года назад

      Adding clustered index results in additional btree pages that need to be scanned as well.

  • @AndAcosta
    @AndAcosta 5 лет назад

    Hello Kurup,
    I've read some of the discussion in the indicated forum and looks like a hot topic, I want perform some tests in real data but it will be great if you provide your scripts used in this video.
    Could you please?
    Thank you in advance!
    AA

    • @JayanthKurup
      @JayanthKurup  5 лет назад

      Hi Andreson ..hows the testing going ? Just following up if you found anything interesting on SQL 2019

    • @faizanahmed3955
      @faizanahmed3955 4 года назад

      @@JayanthKurup How can i get the scripts from the video? please advise

    • @JayanthKurup
      @JayanthKurup  4 года назад

      Hi
      The script can be found here.
      www.enabledbusinesssolutions.com/blogs/sample-script-for-partitioning/
      The video was posted a long time back so the script might need some tweaking if you trying to recreate the example from the video. If you simply trying to implement partitioning then the script should work fine.
      Jayanth

  • @jamesonkeju
    @jamesonkeju 6 лет назад

    Hello you forgot to add the link as promised. Do add this link here,please.

    • @JayanthKurup
      @JayanthKurup  4 года назад

      www.enabledbusinesssolutions.com/blogs/sample-script-for-partitioning/

  • @amarnadhgunakala2901
    @amarnadhgunakala2901 4 года назад

    Pls send sample data used in demo

    • @JayanthKurup
      @JayanthKurup  4 года назад

      Here is the link with update video and script in description
      ruclips.net/video/Z9bq7i2yp1Y/видео.html