Is there such a thing as too many tables?

后端 未结 9 1453
忘了有多久
忘了有多久 2021-02-13 01:01

I\'ve been searching stackoverflow for about an hour now and couldn\'t find any topics related, so I apologize if this is a duplicate question.

My inquiry is this. Is th

相关标签:
9条回答
  • 2021-02-13 01:16

    It seems like you're making your best effort to normalize your database. That's a good thing. Many times problems arise because there are not enough tables.

    0 讨论(0)
  • 2021-02-13 01:16

    Without knowing anything about your specific database, I'd say that no, you are not using too many tables. Real world problems and business needs can easily point to a schema that's at least as large as yours. I think the real question to ask is whether your design is right for your problem.

    0 讨论(0)
  • 2021-02-13 01:16

    You may put all the data from your actual tables in one table. To the second table may hold just your 'table names', and the application will still work.

    But this is not the point here.
    Tables are some kind of organization structure. They are some kind of drawers.

    Do I have too many drawers?

    It depends…

    0 讨论(0)
  • 2021-02-13 01:18

    It really depends on the complexity of the application you're trying to implement. Things such as accounting systems are pretty intense had easily reach 40+ tables.

    0 讨论(0)
  • 2021-02-13 01:19

    You should have exactly as many tables as you need; no more, no less.

    One of the systems I'm working on these days has 143 tables - because that's exactly the number required to solve the problem.

    0 讨论(0)
  • 2021-02-13 01:23

    LOL our main db has over 700 tables, I haven't worked with a database so tiny it only had 40 tables in years and years.

    As long as you have the tables you need and they are correclty normalized, you are fine.

    I've seen more performance problems caused by too few tables than too many.

    0 讨论(0)
提交回复
热议问题