473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Limits for TABLES in DATABASE?

Hello,

where can I find limits of how many TABLES can exists in one DATABASE?
Also, is there any performance penalty (or other) for having alot of
TABLES in one DATABASE?

Regards
Janne Timmerbacka
Jul 20 '05 #1
4 1293
Janne Timmerbacka wrote:
where can I find limits of how many TABLES can exists in one DATABASE?
There is no limit from MySQL, limit comes from os.

x = (How many files can be hold in single directory in your operating
system / 3)

Solve x
Also, is there any performance penalty (or other) for having alot of
TABLES in one DATABASE?


For one user? Poor database design is one and good penalty. And if you
need to run selects with joins, that will propably slow queries. One
table design is also poor design so don't go there.

Most common reason for using multiple tables for a bad reason is
something like this:

table1:
- field_x
- field_y
- field_z

table2:
- field_x
- field_y
- field_z

As you can see, both table1 and table2 have same column names, and they
contain same kind of objects. Only reason there are two tables is that
they belong to two different groups. Instead you should have:

table1:
- field_x
- field_y
- field_z
- group

Where you can now put both of them into same table and sort them by
group value.
Jul 20 '05 #2
Thank you for your fast answer ;).

I'm using www.e107.org CMS-system, which creates about 30 mysql TABLES. I
need to create multiple CMS-systems with around 30 TABLES each, but my
current www server host gives me only one DATABASE. Maybe I will have
around 200 tables, but I don't belive need more than that. Each table has
it's own tablename prefix depending on which CMS-system it belongs to. I
don't have to write any SQL-queries my self, because e107 takes care of
all database stuff.

If this approach dosen't create performance problems, I wouldn't like to
change anything or pay more to other www server host company.

Regards
Janne Timmerbacka

On Tue, 01 Jun 2004 06:35:17 GMT, Aggro <sp**********@yahoo.com> wrote:
Also, is there any performance penalty (or other) for having alot of
TABLES in one DATABASE?


For one user? Poor database design is one and good penalty. And if you
need to run selects with joins, that will propably slow queries. One
table design is also poor design so don't go there.

Jul 20 '05 #3
Janne Timmerbacka wrote:
If this approach dosen't create performance problems, I wouldn't like
to change anything or pay more to other www server host company.


If different CMS-systems don't need to use tables from each other, then
there won't be speed issues. (It would be the same if you would use
multiple databases).
Jul 20 '05 #4
They don't. Thank you for your time and support ;)
Janne

On Tue, 01 Jun 2004 15:58:23 GMT, Aggro <sp**********@yahoo.com> wrote:
If different CMS-systems don't need to use tables from each other, then
there won't be speed issues. (It would be the same if you would use
multiple databases).

Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: robert | last post by:
well, i can't remember being limited to 8 characters for something, except in the good ole days of M$-dos. now i find that DB2/390 has a 8 character limit on tablespace names?!?!?!?!? given...
1
by: Matt Alanzo | last post by:
On another newsgroup an Access knowledgable party posted: >You should be able to connect an Access ADP to an existing SQLExpress >database running in SQLS 2000 compatibility mode. The only thing...
19
by: windandwaves | last post by:
Hi Folk I am managing a site, www.friars.co.nz that seems to be hitting the limits and I keep getting the 500 error. According to the people from webfarm it is because my script are too...
5
by: tduncan | last post by:
I've been trying to build a database with Access, and have been building query on top of query to get around Access' limits on the number of fields in a table or query. I've divided up some of my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.