当前位置: 首页 > news >正文

网站备案期间做什么wordpress 页面 插件

网站备案期间做什么,wordpress 页面 插件,seo推广方式是什么呢,ui设计师自我评价PostgreSQL 字段使用pglz压缩测试 测试一#xff1a; 创建测试表 yewu1.test1#xff0c;并插入1000w行数据 创建测试表 yewu1.test2#xff0c;使用 pglz压缩字段#xff0c;并插入1000w行数据–创建测试表1#xff0c;并插入1000w行数据 white# create table yewu1.t…PostgreSQL 字段使用pglz压缩测试 测试一 创建测试表 yewu1.test1并插入1000w行数据 创建测试表 yewu1.test2使用 pglz压缩字段并插入1000w行数据–创建测试表1并插入1000w行数据 white# create table yewu1.test1 (name varchar(20)); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test1::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | (7 rows) white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test1 VALUES (white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test1)) AS table_size;table_size ------------422 MB (1 row)–创建测试表2使用 pglz压缩字段并插入1000w行数据 white# white# create table yewu1.test2 (name varchar(20) COMPRESSION pglz); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test2::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | p (7 rows) white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test2 VALUES (white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test2)) AS table_size;table_size ------------422 MB (1 row)对比表yewu1.test1和yewu1.test2的大小没体现出压缩了。 测试二 创建测试表 yewu1.test3text数据类型并插入1000w行数据 创建测试表 yewu1.test4text数据类型使用 pglz压缩字段并插入1000w行数据–创建测试表3并插入1000w行数据 white# create table yewu1.test3 (name text); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test3::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | (7 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test3 VALUES (white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test3)) AS table_size;table_size ------------422 MB (1 row)–创建测试表4使用 pglz压缩字段并插入1000w行数据 white# create table yewu1.test4 (name text COMPRESSION pglz); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test4::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | p (7 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test4 VALUES (white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test4)) AS table_size;table_size ------------422 MB (1 row)对比表yewu1.test3和yewu1.test4的大小没体现出压缩了。 测试三 创建测试表 yewu1.test5text数据类型并插入1000w行重复的数据 创建测试表 yewu1.test6text数据类型使用 pglz压缩字段并插入1000w行重复的数据–创建测试表5并插入1000w行重复的数据 white# create table yewu1.test5 (name text); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test5::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | (7 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test5 VALUES (white12345678); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test5)) AS table_size;table_size ------------422 MB (1 row)–创建测试表6使用 pglz压缩字段并插入1000w行重复的数据 white# create table yewu1.test6 (name text COMPRESSION pglz); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test6::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | name | p (7 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test6 VALUES (white12345678); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test6)) AS table_size;table_size ------------422 MB (1 row)对比表yewu1.test5和yewu1.test6的大小没体现出压缩了。 测试四 创建测试表 yewu1.test7带有主键text数据类型并插入1000w行重复的数据 创建测试表 yewu1.test8带有主键text数据类型使用 pglz压缩字段并插入1000w行重复的数据–创建测试表7带有主键并插入1000w行重复的数据 white# create table yewu1.test7 ( white(# id serial primary key, white(# name text white(# ); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test7::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | id | name | (8 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test7 VALUES (aa,white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test7)) AS table_size;table_size ------------490 MB (1 row)–创建测试表8带有主键使用 pglz压缩字段并插入1000w行重复的数据 white# create table yewu1.test8 ( white(# id serial primary key, white(# name text COMPRESSION pglz white(# ); CREATE TABLE white# white# SELECT attname, attcompression white-# FROM pg_attribute white-# WHERE attrelid yewu1.test8::regclass;attname | attcompression --------------------------tableoid | cmax | xmax | cmin | xmin | ctid | id | name | p (8 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test8 VALUES (aa,white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test8)) AS table_size;table_size ------------490 MB (1 row)对比表yewu1.test7和yewu1.test8的大小没体现出压缩了。 测试五 清空测试表 yewu1.test8并修改字段存储类型为MAIN再插入1000w行重复的数据–清空测试表8并修改字段存储类型为MAIN再插入1000w行重复的数据 white# truncate table yewu1.test8; TRUNCATE TABLE white# SELECT pg_size_pretty(pg_table_size(yewu1.test8)) AS table_size;table_size ------------8192 bytes (1 row)white# white# SELECT attname, attcompression,attstorage white-# FROM pg_attribute white-# WHERE attrelid yewu1.test8::regclass;attname | attcompression | attstorage --------------------------------------tableoid | | pcmax | | pxmax | | pcmin | | pxmin | | pctid | | pid | | pname | p | x (8 rows)white# white# ALTER TABLE yewu1.test8 ALTER COLUMN name SET STORAGE MAIN; ALTER TABLE white# SELECT attname, attcompression,attstorage white-# FROM pg_attribute white-# WHERE attrelid yewu1.test8::regclass;attname | attcompression | attstorage --------------------------------------tableoid | | pcmax | | pxmax | | pcmin | | pxmin | | pctid | | pid | | pname | p | m (8 rows)white# white# DO $$ white$# DECLARE aa INTEGER; white$# BEGIN white$# FOR aa IN 1..10000000 LOOP white$# INSERT INTO yewu1.test8 VALUES (aa,white || aa); white$# END LOOP; white$# COMMIT; white$# END $$; DO white# white# SELECT pg_size_pretty(pg_table_size(yewu1.test8)) AS table_size;table_size ------------490 MB (1 row)–未完待续。思路错了pg的压缩表有限制
http://www.zqtcl.cn/news/448245/

相关文章:

  • 企业如何做网站推广成都外贸网站建设
  • 网页设计 网站建设 哪个好佛山网站建设推广服务
  • 东莞网站建设技术支持产品推广怎么写
  • 银川app购物网站制作公司网站建设怎样提升形象与品牌价值
  • 中山城市建设集团网站信誉好的邯郸网站建设
  • 做网站很赚钱吗贵阳网站建设费用
  • 设计网站的关键点用ps做招生网站
  • 制作网站公司服务器租赁一年的费用网页动画是如何制作出来的
  • 佛山网站优化有莱芜房产网新房
  • 西安英文旅游网站建设中国建筑工程门户商城
  • 山东企业建站软件购物网站是多少
  • 外链收录网站语音识别程序代做网站
  • 天津平台网站建设公司wordpress删除页头页尾
  • 网站加入站长统计wordpress设置手机浏览器
  • 服务器网站备案怎么做网站流量竞品分析
  • 四川省建设工程信息网站上海金融网站制作公
  • php7.2 wordpress黑帽seo软件
  • 网站后台cms做网站项目团队口号
  • 云南哪几个建网站公司九江做网站哪家好
  • 时尚网站模板代码网站模板炫酷
  • 股票网站怎么做动态表格live2d看板娘wordpress
  • 班级网站建设开题报告企业创新平台建设
  • 网站建设有什么要求建设电子商务网站的步骤
  • 百度推广和哪些网站有合作专业网站开发多少钱
  • 相城区住房建设局网站做网站开发电脑配置
  • 成都网站建设制作photoshop网页制作视频教程
  • 深圳网站做的好的公司广州外贸营销网站建设公司
  • 网站你懂我意思正能量晚上不用下载直接进入微信公众号免费模板素材网站
  • 网站设计模板之家南宁seo外包平台
  • 免费舆情网站遵义市双控体系建设网站