Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Defragmentation Problem

Defragmentation Problem

Scheduled Pinned Locked Moved Database
helpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aman786Singh
    wrote on last edited by
    #1

    I have a table containing 1 crore tuples(rows). At the creation time , i have applied indexes on it. Should i defrag it peiodically ?? Only the Select Operation is performed on it.. Kindly suggest...

    L 1 Reply Last reply
    0
    • A Aman786Singh

      I have a table containing 1 crore tuples(rows). At the creation time , i have applied indexes on it. Should i defrag it peiodically ?? Only the Select Operation is performed on it.. Kindly suggest...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Aman786Singh wrote:

      Only the Select Operation is performed on it

      It won't get fragmented indeed, since you - only read from it - are using a database, not a file-system Hope this helps :)

      I are troll :)

      L A 2 Replies Last reply
      0
      • L Lost User

        Aman786Singh wrote:

        Only the Select Operation is performed on it

        It won't get fragmented indeed, since you - only read from it - are using a database, not a file-system Hope this helps :)

        I are troll :)

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Eddy Vluggen wrote:

        are using a database, not a file-system

        you expect a read-only file-system to get fragmented over time? :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


        L 1 Reply Last reply
        0
        • L Luc Pattyn

          Eddy Vluggen wrote:

          are using a database, not a file-system

          you expect a read-only file-system to get fragmented over time? :)

          Luc Pattyn [Forum Guidelines] [My Articles]


          - before you ask a question here, search CodeProject, then Google - the quality and detail of your question reflects on the effectiveness of the help you are likely to get - use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          :laugh: I was thinking that there's no "defrag.exe" for databases! And I bet that somewhere, someone will have written such a thing :)

          I are troll :)

          1 Reply Last reply
          0
          • L Lost User

            Aman786Singh wrote:

            Only the Select Operation is performed on it

            It won't get fragmented indeed, since you - only read from it - are using a database, not a file-system Hope this helps :)

            I are troll :)

            A Offline
            A Offline
            Aman786Singh
            wrote on last edited by
            #5

            WHEN I RAN INDEXDEFFRAG.. THEN WHAT THIS RESULT MEANS??? PAGE SCANNED PAGE MOVED 245 0

            L 1 Reply Last reply
            0
            • A Aman786Singh

              WHEN I RAN INDEXDEFFRAG.. THEN WHAT THIS RESULT MEANS??? PAGE SCANNED PAGE MOVED 245 0

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              You were right :) "DBCC INDEXDEFRAG defragments the leaf level of an index so that the physical order of the pages matches the left-to-right logical order of the leaf nodes, thus improving index-scanning performance."

              I are troll :)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups