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. question on size of relational DB

question on size of relational DB

Scheduled Pinned Locked Moved Database
cssdatabasehelpquestion
2 Posts 2 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.
  • M Offline
    M Offline
    Mohammad Dabaan
    wrote on last edited by
    #1

    hi all, I want just to know some thing about the size of DB, if we have DB with 2 tables with no relations between both of them (no PK and FK) so does its size is less than the same one which we make a relation between both of its tables. I want to know even there is a small increment on the size of DB where there is a relation between its tables instead of the one where there is no relation between their table. thanks for the help from all :laugh:

    Thanks alot Hamody

    W 1 Reply Last reply
    0
    • M Mohammad Dabaan

      hi all, I want just to know some thing about the size of DB, if we have DB with 2 tables with no relations between both of them (no PK and FK) so does its size is less than the same one which we make a relation between both of its tables. I want to know even there is a small increment on the size of DB where there is a relation between its tables instead of the one where there is no relation between their table. thanks for the help from all :laugh:

      Thanks alot Hamody

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      Hi, When you add relation between tables (foreign key) only a small amount of data is added to system tables. The foreign key is enforced without any additional space requirements on your tables (however the system tables where the foreign key is defined are stored in the same database so they use a small amount of space, as data always does). When defining primary key, the information is also added to system tables, but in this case an index is typically also built to quarantee performance of the primary key. The size of the index can vary a lot so there's no way of saying how much space it will consume without the knowledge of the primary key definition along with table definition. Hope this helps, Mika

      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