Can it be a good idea to create a new table for each client of a webapp?

Posted by Will on Programmers See other posts from Programmers or by Will
Published on 2010-12-28T19:29:40Z Indexed on 2010/12/28 19:58 UTC
Read the original article Hit count: 181

This is semi-hypothetical, and as I've no experience in dealing with massive database tables, I have no idea if this is horrible for some reason. On to the situation:

Imagine a web based application - lets say accounting software - which has 20,000 clients and each client has 1000+ entries in a table. That's 20 million rows which I know can certainly slow down complex queries.

In a case like this, does it make more sense to create a new table in the database for each client? How do databases react to having 20k (or more!) tables?

© Programmers or respective owner

Related posts about best-practices

Related posts about web-applications