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. Other Discussions
  3. The Weird and The Wonderful
  4. Stop the madness...

Stop the madness...

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasexmllearning
8 Posts 4 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.
  • J Offline
    J Offline
    Jeremy Tierman
    wrote on last edited by
    #1

    Ok...well I can't post the screenshot...or tell why, but here it is... While learning an inherited database schema for a suite of apps that we are taking over, I found a database diagram called Unrelated Tables containing sure enough, 22 unrelated tables. I had to stop there. X|

    S M 2 Replies Last reply
    0
    • J Jeremy Tierman

      Ok...well I can't post the screenshot...or tell why, but here it is... While learning an inherited database schema for a suite of apps that we are taking over, I found a database diagram called Unrelated Tables containing sure enough, 22 unrelated tables. I had to stop there. X|

      S Offline
      S Offline
      SomeGuyThatIsMe
      wrote on last edited by
      #2

      while not the best practice I have several sets of unreleated tables, simply because there is no real way to relate them to anything, and they have over 400 million rows of data between them, and some other groups that are transactional and only related to each other for application performance reasons. I can search the 400 million+ rows in less than a second(on a 10 character compare no less, no or very few int compares), the old db server could do it in under a second and it was 4 or 5 years old.

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      J 1 Reply Last reply
      0
      • J Jeremy Tierman

        Ok...well I can't post the screenshot...or tell why, but here it is... While learning an inherited database schema for a suite of apps that we are taking over, I found a database diagram called Unrelated Tables containing sure enough, 22 unrelated tables. I had to stop there. X|

        M Offline
        M Offline
        Megidolaon
        wrote on last edited by
        #3

        These tables might have their merit. For example for storing data that really does not relate to anything else but is still worth storing in the database.

        J 1 Reply Last reply
        0
        • S SomeGuyThatIsMe

          while not the best practice I have several sets of unreleated tables, simply because there is no real way to relate them to anything, and they have over 400 million rows of data between them, and some other groups that are transactional and only related to each other for application performance reasons. I can search the 400 million+ rows in less than a second(on a 10 character compare no less, no or very few int compares), the old db server could do it in under a second and it was 4 or 5 years old.

          Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

          J Offline
          J Offline
          Jeremy Tierman
          wrote on last edited by
          #4

          I should have been more specific...in all the tables, there are a few records to a few thousand. They do relate to each other, but have no relationships setup.

          S 1 Reply Last reply
          0
          • M Megidolaon

            These tables might have their merit. For example for storing data that really does not relate to anything else but is still worth storing in the database.

            J Offline
            J Offline
            Jeremy Tierman
            wrote on last edited by
            #5

            I wish it were the case. Other response

            M 1 Reply Last reply
            0
            • J Jeremy Tierman

              I should have been more specific...in all the tables, there are a few records to a few thousand. They do relate to each other, but have no relationships setup.

              S Offline
              S Offline
              SomeGuyThatIsMe
              wrote on last edited by
              #6

              thats better than a product we found...dozens if not hundreds of FK's many circuliar, and several per table(read 2 or 3 FK's to table b, which has several back to table a, along with various others..some are circular and involve 3 to 4 tables in a big loop), all on character keys. doing anything in that DB takes forever. importing 20k rows took 24 or so hours(run time), because of all the extra data that had to be created and integrity checks the server had to make.

              Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

              1 Reply Last reply
              0
              • J Jeremy Tierman

                I wish it were the case. Other response

                M Offline
                M Offline
                Megidolaon
                wrote on last edited by
                #7

                At least better than using strings which are created by adding several different infos as primary keys. Especially when a certain combination of these infos can appear multiple times and you need to add new rows in tables, not because they contain new data, but only because the primary key of a different table would be the same as it uses the same combination of infos. Or using columns with non-atomic values as lists separated by commas (I can tell you, getting all entries from that list is a pain)...

                A 1 Reply Last reply
                0
                • M Megidolaon

                  At least better than using strings which are created by adding several different infos as primary keys. Especially when a certain combination of these infos can appear multiple times and you need to add new rows in tables, not because they contain new data, but only because the primary key of a different table would be the same as it uses the same combination of infos. Or using columns with non-atomic values as lists separated by commas (I can tell you, getting all entries from that list is a pain)...

                  A Offline
                  A Offline
                  AJMH
                  wrote on last edited by
                  #8

                  Sometimes using compound string keys is the only way to maintain data between multiple systems / instances where there is no shared system key (and no reason to force such a situation). That said, you would hope the individual elements which were used to generate the keys are available as individual columns also to give good performance for queries...

                  AJ

                  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