dougaojue8185 2015-05-11 20:25
浏览 59
已采纳

为什么wordpress序列化数据库中的数据?

Ok so im fairly new to wordpress programming and realized all their core data, and plugin data are always serialized. Doesn't this take away from the RELATIONAL aspect of a RDBMS? And it doesn't even save space because the strings are soooo long most of the time, and it's harder to scale/modify the data this way...

I don't understand why they decided to do this, and i haven't found any online references as to why they would do this.

  • 写回答

3条回答 默认 最新

  • duanqiao9541 2015-05-11 20:37
    关注

    Obviously, since I'm not a developer for Wordpress, I don't know their exact reason.

    But perhaps they came to the same conclusion as me:

    Sometimes, it's just not worth it. Sometimes, you just want to store some data. Sometimes, the database will never, ever do anything with that data other than send it back to the processing code. In cases like this, when the data will never relate to anything else in the database, why bother designing a relational database when a data-dump is all you need?

    Is it a good idea? Probably not, it's a lazy one that just works when you need it to with a minimum of fuss. However, if I ever catch you using MySQL to try and process data out of a serialised column, I will ban you from the internet.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥20 求快手直播间榜单匿名采集ID用户名简单能学会的
  • ¥15 DS18B20内部ADC模数转换器
  • ¥15 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历