In MySQL, what is the difference between storing data in multiple columns vs storing data in JSON columns
P粉393030917
P粉393030917 2023-07-24 16:17:05
0
1
363
<p>Suppose I have a table called T1. Initially, it has ID, Identifier, C1, C2 as columns. Over time I will add new columns C3, C4 and so on. Would it be better to have these columns as ID, Identifier, Info? Where Info is a JSON column containing C1, C2, C3 as keys and their corresponding values. Considering the size of approximately 10^9 records, what will be the performance of reads, writes, and updates? </p>
P粉393030917
P粉393030917

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!