GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Really large mysql db ? you worked with ? (https://gfy.com/showthread.php?t=1056401)

cooldude7 02-05-2012 09:45 PM

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 02-05-2012 10:30 PM

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.

martinsc 02-05-2012 11:44 PM

Quote:

Originally Posted by mikesouth (Post 18737132)
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.

:2 cents::2 cents:

grumpy 02-06-2012 05:24 AM

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

cooldude7 02-06-2012 05:38 AM

Quote:

Originally Posted by mikesouth (Post 18737132)
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

Quote:

Originally Posted by grumpy (Post 18737488)
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

fris 02-06-2012 05:49 AM

i know b0rked uses a huge mysqldb for his geoip stuff, records in the millions at least

cooldude7 02-06-2012 06:58 AM

Quote:

Originally Posted by fris (Post 18737516)
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.

AdultEUhost 02-06-2012 07:11 AM

innodb or myisam? do you have blob or text fields?

raymor 02-06-2012 07:13 AM

Quote:

Originally Posted by cooldude7 (Post 18737508)
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.

fris 02-06-2012 07:51 AM

Quote:

Originally Posted by cooldude7 (Post 18737598)
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.

HomerSimpson 02-06-2012 10:00 AM

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...

borked 02-06-2012 02:50 PM

Quote:

Originally Posted by cooldude7 (Post 18737508)
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. :2 cents:

cooldude7 02-06-2012 08:48 PM

Quote:

Originally Posted by AdultEUhost (Post 18737613)
innodb or myisam? do you have blob or text fields?

myisam , no text fiends

Quote:

Originally Posted by HomerSimpson (Post 18737973)
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 ....
Quote:

Originally Posted by borked (Post 18738623)
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. :2 cents:

okie., need to learn that thing.

d-null 02-06-2012 09:16 PM

is hard drive configuration an important consideration here?

cooldude7 02-06-2012 10:44 PM

Quote:

Originally Posted by d-null (Post 18739281)
is hard drive configuration an important consideration here?

nope., only server load.

V_RocKs 02-07-2012 12:32 AM

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


All times are GMT -7. The time now is 05:45 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123