Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ssquare's avatar

Create a new table or store in same

Ok, I have data about different persons. Lets' say people from different states. One states have around 10-15M rows of data. Now, here which one is suitable is it good to make each table for each state or to insert all data in same table.

Could you also explain me the pros and cons of both method.

0 likes
1 reply
mac03733's avatar

i would go for one table. My reasoning being you dont have to query multiple tables if u need data about several states and its much easier to manage

hope i understood ur question nd the answer is helpful

Please or to participate in this conversation.