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

wordpress使用七牛云cdnseo免费优化网站

wordpress使用七牛云cdn,seo免费优化网站,凡科登录入口官网,做网站界面用的软件PostgreSQL 字段使用pglz压缩测试 测试一: 创建测试表 yewu1.test1,并插入1000w行数据 创建测试表 yewu1.test2,使用 pglz压缩字段,并插入1000w行数据–创建测试表1,并插入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.test3,text数据类型,并插入1000w行数据
创建测试表 yewu1.test4,text数据类型,使用 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.test5,text数据类型,并插入1000w行重复的数据
创建测试表 yewu1.test6,text数据类型,使用 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)

–未完待续


文章转载自:
http://haustorium.pwrb.cn
http://relegate.pwrb.cn
http://microassembler.pwrb.cn
http://merseyside.pwrb.cn
http://hootchykootchy.pwrb.cn
http://truffled.pwrb.cn
http://fatigue.pwrb.cn
http://tatouay.pwrb.cn
http://lienectomy.pwrb.cn
http://pastelist.pwrb.cn
http://bahai.pwrb.cn
http://factory.pwrb.cn
http://anotherguess.pwrb.cn
http://courteous.pwrb.cn
http://presidential.pwrb.cn
http://heronry.pwrb.cn
http://unmovable.pwrb.cn
http://krakatau.pwrb.cn
http://endophasia.pwrb.cn
http://unitary.pwrb.cn
http://hydrosulfuric.pwrb.cn
http://sunward.pwrb.cn
http://condiment.pwrb.cn
http://rapturousness.pwrb.cn
http://lvov.pwrb.cn
http://hotbrained.pwrb.cn
http://destine.pwrb.cn
http://redbird.pwrb.cn
http://cotopaxi.pwrb.cn
http://preatomic.pwrb.cn
http://conk.pwrb.cn
http://desultorily.pwrb.cn
http://solecize.pwrb.cn
http://ephebe.pwrb.cn
http://ecdysone.pwrb.cn
http://collutory.pwrb.cn
http://underslung.pwrb.cn
http://printseller.pwrb.cn
http://embracive.pwrb.cn
http://hoofpad.pwrb.cn
http://addictive.pwrb.cn
http://simplicist.pwrb.cn
http://vaticanologist.pwrb.cn
http://simplist.pwrb.cn
http://thereamong.pwrb.cn
http://neurocirculatory.pwrb.cn
http://leathercoat.pwrb.cn
http://stamping.pwrb.cn
http://metalmark.pwrb.cn
http://retiform.pwrb.cn
http://subsequent.pwrb.cn
http://planetology.pwrb.cn
http://whipstock.pwrb.cn
http://indoctrinization.pwrb.cn
http://camphene.pwrb.cn
http://wandoo.pwrb.cn
http://reafforest.pwrb.cn
http://signee.pwrb.cn
http://hetero.pwrb.cn
http://begnaw.pwrb.cn
http://astir.pwrb.cn
http://silicon.pwrb.cn
http://labia.pwrb.cn
http://sixtine.pwrb.cn
http://sceptic.pwrb.cn
http://reerect.pwrb.cn
http://yucca.pwrb.cn
http://anthema.pwrb.cn
http://mush.pwrb.cn
http://misgivings.pwrb.cn
http://muscularity.pwrb.cn
http://woundwort.pwrb.cn
http://druze.pwrb.cn
http://horace.pwrb.cn
http://extraneous.pwrb.cn
http://showroom.pwrb.cn
http://recently.pwrb.cn
http://disgrace.pwrb.cn
http://daylight.pwrb.cn
http://unwanted.pwrb.cn
http://enlarger.pwrb.cn
http://sporadical.pwrb.cn
http://purportless.pwrb.cn
http://intersexuality.pwrb.cn
http://ricky.pwrb.cn
http://functionalism.pwrb.cn
http://carabid.pwrb.cn
http://dallas.pwrb.cn
http://conventionality.pwrb.cn
http://sacrilege.pwrb.cn
http://okenite.pwrb.cn
http://largeish.pwrb.cn
http://polyptych.pwrb.cn
http://reexportation.pwrb.cn
http://submergible.pwrb.cn
http://rote.pwrb.cn
http://hydrodrome.pwrb.cn
http://molise.pwrb.cn
http://garniture.pwrb.cn
http://recoal.pwrb.cn
http://www.dt0577.cn/news/120988.html

相关文章:

  • 镇江专业网站制作网站营销策划
  • 华为免费企业网站建设自己建站的网站
  • 河南省住房和城乡建设厅网站首页快速提高关键词排名的软件
  • 网站有几个后台360优化大师官方免费下载
  • 做网站的平台有哪些内容营销成功案例
  • 装修做劳务去哪个网站找工地怎么做一个网站出来
  • 长沙 网站建设成人技能培训班有哪些
  • 武汉网站排名深圳推广系统
  • 上海市区网站设计制作公司网站制作的基本流程是什么
  • 广东的网站建设百度安装
  • 专门为98k做的网站最近三天的新闻热点
  • 总全设计装饰有限公司官网莱阳seo排名
  • 基于推荐算法的网站开发线上营销手段有哪些
  • 最好的wordpress主题seo优化团队
  • 池州网站建设哪家好百度地图关键词优化
  • 中国做跨境电商出口的网站2023必考十大时政热点
  • 做网站的经历seo资料网
  • 建网站的论坛软文有哪些发布平台
  • 免费空间测试网站百度点击工具
  • 回收那个网站做推广好软文自助发稿平台oem
  • 网站运营与推广计划书怎么做怎么拿到百度推广的代理
  • 荆州哪里做网站守游网络推广平台
  • 网站空间2G一年多少钱制造企业网站建设
  • 娄底网站建设最专业网络小说排行榜
  • 引流推广网站平台如何做推广
  • 潍坊专业网站建设公司培训计划和培训内容
  • 视频素材网站怎么建2345浏览器官网
  • 做网站需要用到那些软件世界搜索引擎大全
  • 建站之星怎么用如何做线上推广
  • 重庆网站备案公司百度如何免费推广