Really large mysql db ? you worked with ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cooldude7
    Confirmed User
    • Nov 2009
    • 4306

    #1

    Really large mysql db ? you worked with ?

    hi all.,

    out of curiosity has anybody here worked with really large mysql db ?

    i am working on new project which has 167 gb database file
    consist of 840 tables each of 5 mil records. each table is of 180-200 mb

    just wanted to know whether can 8gigs ram and quadcore server handle it ?

    not much queries., like 20k per day, simple find and echo queries.
  • mikesouth
    Confirmed User
    • Jun 2003
    • 6340

    #2
    its all gonna depend on the database design and the use.

    if your db is well designed and queries are optimized and simple then yes.

    If you are doing transactions, live updates, complex queries then you probably will not be happy with the performance, but if yer doing all of that you shouldnt be running it on mysql, you should be looking at Oracle or something. spread the DB across a couple of servers and load balance everything.

    its all gonna depend on the usage.
    Mike South

    It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz.

    Comment

    • martinsc
      Too lazy to set a custom title
      • Jun 2005
      • 27043

      #3
      Originally posted by mikesouth
      its all gonna depend on the database design and the use.

      if your db is well designed and queries are optimized and simple then yes.
      Make Money

      Comment

      • grumpy
        Too lazy to set a custom title
        • Jan 2002
        • 9870

        #4
        some stats of mine
        This MySQL server has been running for 149 days, 15 hours, 52 minutes and 29 seconds. It started up on Sep 09, 2011 at 10:30 PM.

        Query statistics: Since its startup, 8,478,380,495 queries have been sent to the server.

        Traffic 1 ø per hour
        Received 631 GiB 180 MiB
        Sent 18 TiB 5,111 MiB
        Total 18 TiB 5,291 MiB

        No probs, using 16Mb of ram
        4k of tables
        Don't let greediness blur your vision | You gotta let some shit slide
        icq - 441-456-888

        Comment

        • cooldude7
          Confirmed User
          • Nov 2009
          • 4306

          #5
          Originally posted by mikesouth
          its all gonna depend on the database design and the use.

          if your db is well designed and queries are optimized and simple then yes.

          If you are doing transactions, live updates, complex queries then you probably will not be happy with the performance, but if yer doing all of that you shouldnt be running it on mysql, you should be looking at Oracle or something. spread the DB across a couple of servers and load balance everything.

          its all gonna depend on the usage.
          okie. this helps.,
          only2 columns per table,
          1 uniq id and another is numbers.
          so i guess this is very simple

          Originally posted by grumpy
          some stats of mine
          This MySQL server has been running for 149 days, 15 hours, 52 minutes and 29 seconds. It started up on Sep 09, 2011 at 10:30 PM.

          Query statistics: Since its startup, 8,478,380,495 queries have been sent to the server.

          Traffic 1 ø per hour
          Received 631 GiB 180 MiB
          Sent 18 TiB 5,111 MiB
          Total 18 TiB 5,291 MiB

          No probs, using 16Mb of ram
          4k of tables
          good, this is awesome.,
          but mine is not only db server its all in one server like apache, mail , database.
          anyways, i m gonna give it a go on my current server.,
          thanks
          Last edited by cooldude7; 02-06-2012, 03:40 AM.

          Comment

          • fris
            I have to go potty
            • Aug 2002
            • 55795

            #6
            i know b0rked uses a huge mysqldb for his geoip stuff, records in the millions at least
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


            My Newest Theme

            Comment

            • cooldude7
              Confirmed User
              • Nov 2009
              • 4306

              #7
              Originally posted by fris
              i know b0rked uses a huge mysqldb for his geoip stuff, records in the millions at least
              mine contains, 4 200 000 000
              i m gonna give it try., if server starts acting weird then ill pull the db.

              Comment

              • AdultEUhost
                ORLY?
                • Oct 2005
                • 2579

                #8
                innodb or myisam? do you have blob or text fields?
                ICQ: 267-443-722 / leon [at] adulteuhost [dotcom]

                Nominated for an XBIZ Award as "Webhost of the Year" in 2007, 2012, 2013 and 2014

                Comment

                • raymor
                  Confirmed User
                  • Oct 2002
                  • 3745

                  #9
                  Originally posted by cooldude7
                  only2 columns per table,
                  1 uniq id and another is numbers.
                  MySQL is probably the wrong tool for the job in that case. Under the hood, MySQL sometimes uses Berkeley DB to store the data. Berkeley DB is simple and very efficient, but it can only store key -> value pairs (what you have). MySQL does a lot of extra work to make key -> value look like a table with multiple columns of various types and make it possible to do complex SQL queries on the data. All that work is wasted if you just want to store and retrieve keys and values. For that, use Berkeley directly.
                  For historical display only. This information is not current:
                  support@bettercgi.com ICQ 7208627
                  Strongbox - The next generation in site security
                  Throttlebox - The next generation in bandwidth control
                  Clonebox - Backup and disaster recovery on steroids

                  Comment

                  • fris
                    I have to go potty
                    • Aug 2002
                    • 55795

                    #10
                    Originally posted by cooldude7
                    mine contains, 4 200 000 000
                    i m gonna give it try., if server starts acting weird then ill pull the db.
                    i would use a seperate server for sql.
                    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                    My Newest Theme

                    Comment

                    • HomerSimpson
                      Too lazy to set a custom title
                      • Sep 2005
                      • 13826

                      #11
                      How in the hell are you going to move 167gb database from one server to another?

                      It should work if indexes are good and there are no complex queries...
                      Make a bank with Chaturbate - the best selling webcam program
                      Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                      PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                      Comment

                      • borked
                        Totally Borked
                        • Feb 2005
                        • 6284

                        #12
                        Originally posted by cooldude7
                        okie. this helps.,
                        only2 columns per table,
                        1 uniq id and another is numbers.
                        so i guess this is very simple
                        You should *very seriously* look at migrating this database over to apache solr. You will get much, much better response with a tiny footprint for such a key/value pair database. Run with either the standalone Jetty app or bundle it behind Tomcat.

                        For coding work - hit me up on andy // borkedcoder // com
                        (consider figuring out the email as test #1)



                        All models are wrong, but some are useful. George E.P. Box. p202

                        Comment

                        • cooldude7
                          Confirmed User
                          • Nov 2009
                          • 4306

                          #13
                          Originally posted by AdultEUhost
                          innodb or myisam? do you have blob or text fields?
                          myisam , no text fiends

                          Originally posted by HomerSimpson
                          How in the hell are you going to move 167gb database from one server to another?

                          It should work if indexes are good and there are no complex queries...
                          zip and ftp ....
                          Originally posted by borked
                          You should *very seriously* look at migrating this database over to apache solr. You will get much, much better response with a tiny footprint for such a key/value pair database. Run with either the standalone Jetty app or bundle it behind Tomcat.
                          okie., need to learn that thing.

                          Comment

                          • d-null
                            . . .
                            • Apr 2007
                            • 13724

                            #14
                            is hard drive configuration an important consideration here?

                            __________________

                            Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                            Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                            Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                            Comment

                            • cooldude7
                              Confirmed User
                              • Nov 2009
                              • 4306

                              #15
                              Originally posted by d-null
                              is hard drive configuration an important consideration here?
                              nope., only server load.

                              Comment

                              • V_RocKs
                                Damn Right I Kiss Ass!
                                • Nov 2003
                                • 32451

                                #16
                                Good queries are important... monyog can help with seeing where problems are...

                                Comment

                                Working...