帝国cms文章表和新闻表的结构/功能区别详解,不同模型功能不同,用途也不同,请大家分好了。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 一、表结构文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 1、表结构不同。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html //$d['diggdown'] = 0;//article没有这个field list news表有文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 2、*_data的字段也不同。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 文章表里没有以下3个字段。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html writer文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html befrom文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html newstext文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 二、功能文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 两个表都可以存文章了。只是保存的形式不同而已。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 文章模型保存的是文本文件。适合大数据方式。对于数据量比较大的,推荐使用文章系统模型。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 新闻模型保存的数据库文件。(方便数据库检索,缺点,数据量大了慢,不过可以放到归档里)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html 我是推荐使用新闻表,可以检索到文本内容的。文章模型不行,只能检索到标题关键等。 而且现在都是M站,M站内容同步是个问题。 |
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/16821.html