Hello All!
I've recently started working with a MySQL database project and I need your guidelines for designing/splitting database. The schema of the main table is as follows:
------------------------------------------------------------
ID | Zone | Area | Indicator | Value | Timestamp |
------------------------------------------------------------
The database is related to the environmental/chemical indicators planted at different locations inside a factory. The factory is divide into zones and areas. Each zone contains multiple areas. Currently the table has a flat structure similar to above but now I have to divide/split among two departments with each department having some complete zones and some specific areas like:
Department 1
-------------
Zone 1: area 1, 2, and 3
Zone 2: area 1 and 3
Zone 3: area 1, 2,
Department 2
------------
Zone 1: area 4
Zone 2: area 2
Zone 3: area 4, 5
Zone 5: area 1, 2, 3, and 4
My problem is how should i split the table? Should i use views? The table is populated every 20 minutes with around 40-50 thousand rows and all the data is flushed only after a week. Please help me with your valueable suggestions.
Thank you very much!