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. Spliting a table.

Spliting a table.

Scheduled Pinned Locked Moved Database
performancequestion
9 Posts 6 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.
  • D Offline
    D Offline
    devboycpp
    wrote on last edited by
    #1

    Does it make any performance benefit if we split our records across more tables instead of just one table ?

    M P A A 4 Replies Last reply
    0
    • D devboycpp

      Does it make any performance benefit if we split our records across more tables instead of just one table ?

      M Offline
      M Offline
      Member 3301325
      wrote on last edited by
      #2

      there could be... provided the database is hosted on raid and the tables are located in diffetent physical files.

      D 1 Reply Last reply
      0
      • D devboycpp

        Does it make any performance benefit if we split our records across more tables instead of just one table ?

        P Offline
        P Offline
        Parwej Ahamad
        wrote on last edited by
        #3

        Yes, split the records in more than one table is a part of normalization. I am sure if you keeps records in a single table then defintely it will consist redundant (duplicate) information. So that is why we split our records across more that one table on the basis of any keys. This is the part of normalization.

        Parwej Ahamad R & D with IIS 5.0/6.0

        modified on Thursday, June 5, 2008 1:36 AM

        M 1 Reply Last reply
        0
        • D devboycpp

          Does it make any performance benefit if we split our records across more tables instead of just one table ?

          A Offline
          A Offline
          Alsvha
          wrote on last edited by
          #4

          Depends on many factors, such as the amount of data, how/what you'll split up, the set up of the database, how you measure performance etc. Generally speaking you can reduce IO if you split sensibly, take a look at the PARTITIONING of tables in SQL Server 2005 (if you use that, and other vendors might have similar functionality),which automates this a bit and which seriously can increase read performance, but can hurt write performance a little bit. Some simple tests I've done for myself showed in situations that I could get ~66% faster read simply by partitioning. Also as suggested by a previous poster, if your tables aren't normalized, there could be a gain from simply doing that to avoid redundant data, and thus decrease the number of operations with read/write.

          --------------------------- Blogging about SQL, Technology and many other things

          1 Reply Last reply
          0
          • P Parwej Ahamad

            Yes, split the records in more than one table is a part of normalization. I am sure if you keeps records in a single table then defintely it will consist redundant (duplicate) information. So that is why we split our records across more that one table on the basis of any keys. This is the part of normalization.

            Parwej Ahamad R & D with IIS 5.0/6.0

            modified on Thursday, June 5, 2008 1:36 AM

            M Offline
            M Offline
            Mycroft Holmes
            wrote on last edited by
            #5

            interesting, I assumed he had a normalised DB and wanted to split a very large table to improve performance. If that is the case then I suggest you use filegroups (sql server) and have each file group on a different physical drive. The next step after that is to use partitioning to segregate your data. Performace tuning and maintenance of a good data structure is an ART and DBAs study for years to achieve a high level of skill, you will need to put in some serious study time to get a feel for this area.

            Never underestimate the power of human stupidity RAH

            1 Reply Last reply
            0
            • D devboycpp

              Does it make any performance benefit if we split our records across more tables instead of just one table ?

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              It depends. Are you talking about splitting the rows (for example having 1 table for 2008 data, 1 for 2007 etc) or splitting the columns (for example taking the address out of the customer table into an address table). If its the former you will probably only see gains if you have very large tables, but properly partitioned there can be significant benefits where large volumes of data are involved. If it the latter you are talking normalisation. Before leaping into too much normalisation take a look at your data useage. Normaalised data will result in joins when querying and this may have a detrimental effect on performance. For performance it is sometimes better to use denormalised data. Its all down to volumes and use really. Hope this helps

              Bob Ashfield Consultants Ltd

              1 Reply Last reply
              0
              • M Member 3301325

                there could be... provided the database is hosted on raid and the tables are located in diffetent physical files.

                D Offline
                D Offline
                devboycpp
                wrote on last edited by
                #7

                Member 3301325 wrote:

                the tables are located in diffetent physical files.

                How can I know if the tables are located in different physical devices and how can this be possible at all ? I meant the tables in question belong to one database.

                M 1 Reply Last reply
                0
                • D devboycpp

                  Member 3301325 wrote:

                  the tables are located in diffetent physical files.

                  How can I know if the tables are located in different physical devices and how can this be possible at all ? I meant the tables in question belong to one database.

                  M Offline
                  M Offline
                  Member 3301325
                  wrote on last edited by
                  #8

                  this is possible even if they are in same database. alll relational databases, sql server/oracle supports this. create separate tablespaces and let the tablespaces be in separate files in separate disks... & then create the tables in separate tablespaces...

                  D 1 Reply Last reply
                  0
                  • M Member 3301325

                    this is possible even if they are in same database. alll relational databases, sql server/oracle supports this. create separate tablespaces and let the tablespaces be in separate files in separate disks... & then create the tables in separate tablespaces...

                    D Offline
                    D Offline
                    devboycpp
                    wrote on last edited by
                    #9

                    Member 3301325 wrote:

                    create separate tablespaces and let the tablespaces be in separate files in separate disks... & then create the tables in separate tablespaces...

                    Can you give me a clue how I can create table spaces in sql server and create tables in them ?

                    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