我不确定如何以使 Web 应用程序有效运行的方式来解决这个问题。我担心正确实施这一点,因为我正在使用一个高流量的网站。
我在数据库中有 3 个表,MySQL
这些表中的值很少更改,但被引用了很多。存储和访问该数据的最佳方式是PHP
什么?
表格示例:
GENRES
+----+-----------+-----------+---------------+--------------+---------------------+
| id | is_active | name | content_limit | thumbnail | thumbnail_active |
+----+-----------+-----------+---------------+--------------+---------------------+
| 1 | ☺ | Animals | 65 | Animals.png | Animals_Active.png |
| 2 | ☺ | Art | 30 | Art.png | Art_Active.png |
| 3 | | Biography | 0 | NULL | NULL |
| 4 | ☺ | Children | 50 | Children.png | Children_Active.png |
| 6 | ☺ | Fantasy | 15 | Fantasy.png | Fantasy_Active.png |
| 7 | | Fiction | 0 | NULL | NULL |
| 8 | | Health | 0 | NULL | NULL |
| 10 | | Music | 0 | Music.png | Music_Active.png |
| 11 | | Politics | 0 | NULL | NULL |
+----+-----------+-----------+---------------+--------------+---------------------+
SERVERS
+----+-----------+-------+----------------------------+-------------------------+-------------+
| id | is_active | name | url | webserver_document_root | description |
+----+-----------+-------+----------------------------+-------------------------+-------------+
| 1 | ☺ | name1 | http://server1.website.com | /dir1 | NULL |
| 2 | ☺ | name2 | http://server1.website.com | /dir2 | NULL |
+----+-----------+-------+----------------------------+-------------------------+-------------+