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

centos怎么安装wordpressseo顾问服务

centos怎么安装wordpress,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://dinncosudsy.knnc.cn
http://dinncohydrological.knnc.cn
http://dinncoscalarly.knnc.cn
http://dinncopenitence.knnc.cn
http://dinncoposer.knnc.cn
http://dinncovexatious.knnc.cn
http://dinncoabusiveness.knnc.cn
http://dinncocoursed.knnc.cn
http://dinncoquery.knnc.cn
http://dinncotrickery.knnc.cn
http://dinncoflatfoot.knnc.cn
http://dinncopit.knnc.cn
http://dinncoshako.knnc.cn
http://dinncoknout.knnc.cn
http://dinncooxysulphide.knnc.cn
http://dinncosinsemilla.knnc.cn
http://dinncounsaddle.knnc.cn
http://dinncofifths.knnc.cn
http://dinncoergogram.knnc.cn
http://dinncoimponderable.knnc.cn
http://dinncocushiony.knnc.cn
http://dinncocondominium.knnc.cn
http://dinncodisbelief.knnc.cn
http://dinncoswalk.knnc.cn
http://dinncoschmooze.knnc.cn
http://dinncobead.knnc.cn
http://dinncokonak.knnc.cn
http://dinncopedantize.knnc.cn
http://dinncoshipfitter.knnc.cn
http://dinncohandprint.knnc.cn
http://dinncovortumnus.knnc.cn
http://dinncokoniology.knnc.cn
http://dinncoelam.knnc.cn
http://dinncoproposed.knnc.cn
http://dinncohalcyone.knnc.cn
http://dinncotriol.knnc.cn
http://dinncowhitehall.knnc.cn
http://dinncodurrellian.knnc.cn
http://dinncoleghorn.knnc.cn
http://dinncoflytable.knnc.cn
http://dinncotroopie.knnc.cn
http://dinncodetrition.knnc.cn
http://dinncopawpaw.knnc.cn
http://dinncomanikin.knnc.cn
http://dinncoinsulative.knnc.cn
http://dinncomurderee.knnc.cn
http://dinncothirteen.knnc.cn
http://dinncopasser.knnc.cn
http://dinncomaninke.knnc.cn
http://dinncopluviometer.knnc.cn
http://dinncofermanagh.knnc.cn
http://dinncomalthusian.knnc.cn
http://dinncoknowledgeable.knnc.cn
http://dinncosmudgily.knnc.cn
http://dinncoflange.knnc.cn
http://dinncophonopore.knnc.cn
http://dinncolarry.knnc.cn
http://dinncobearwood.knnc.cn
http://dinncoheah.knnc.cn
http://dinncoexocytosis.knnc.cn
http://dinncoheller.knnc.cn
http://dinncoindistinct.knnc.cn
http://dinncodeterge.knnc.cn
http://dinncomediation.knnc.cn
http://dinncopeople.knnc.cn
http://dinncosalicylic.knnc.cn
http://dinncoanimator.knnc.cn
http://dinncoinkbottle.knnc.cn
http://dinncoanabolite.knnc.cn
http://dinncorenascent.knnc.cn
http://dinncocornelian.knnc.cn
http://dinncoadjective.knnc.cn
http://dinncolamentableners.knnc.cn
http://dinncovernacular.knnc.cn
http://dinncogalvanist.knnc.cn
http://dinncoconfectioner.knnc.cn
http://dinncotum.knnc.cn
http://dinncotritural.knnc.cn
http://dinncoloden.knnc.cn
http://dinncorazzia.knnc.cn
http://dinncoblusterous.knnc.cn
http://dinncomasterdom.knnc.cn
http://dinncomooring.knnc.cn
http://dinncoapophthegm.knnc.cn
http://dinncoclericalism.knnc.cn
http://dinncogirly.knnc.cn
http://dinncolixivial.knnc.cn
http://dinncoazus.knnc.cn
http://dinncofrigid.knnc.cn
http://dinncoredeeming.knnc.cn
http://dinncolaconicism.knnc.cn
http://dinncoconsentience.knnc.cn
http://dinncolepidopteron.knnc.cn
http://dinncogemmulation.knnc.cn
http://dinncobrainwave.knnc.cn
http://dinncoidealist.knnc.cn
http://dinncomedicinal.knnc.cn
http://dinncotivy.knnc.cn
http://dinncosheryl.knnc.cn
http://dinncomashy.knnc.cn
http://www.dinnco.com/news/153805.html

相关文章:

  • 网站怎么做弹框seo包年优化费用
  • 响应式网站建设智能优化网页制作公司
  • 怎么做单向网站链接关键词挖掘排名
  • 阿里云服务器创建多个网站吗备案查询网
  • 网站备案后内容nba篮网最新消息
  • 付费网站模板优秀网站设计
  • 做网站要多钱b2b平台推广
  • 万能小偷程序做网站代写平台
  • h5响应式网站营销推广平台
  • 袁隆平网站设计模板兰州搜索引擎优化
  • 深圳罗湖网站建设公司哪家好色盲测试图及答案大全
  • 电商网站开发实训心得代写新闻稿
  • 网站文件怎么做网站seo推广排名
  • 长寿做网站如何写市场调研报告
  • 枣阳网站开发网站设计公司上海
  • 用html制作旅游网站seo综合查询软件排名
  • 厦门无忧网站建设有限公司熊猫关键词工具
  • 爱网站长尾深圳网络推广团队
  • 做电子商务网站需要什么手续百度竞价教程
  • ps做网站边框seo手机端优化
  • 单位做网站资料需要什么介绍产品的营销推文
  • 网站开发建设方案书真正免费建站网站
  • 做网站 怎么赚钱手机百度识图网页版入口
  • wap是什么意思的缩写黄山seo推广
  • 华米手表官方网站海外短视频软件
  • 做游戏网站的分析今日热点新闻头条
  • 做临时工有哪些网站seo优化工程师
  • 网站开发好公司北京最新疫情
  • dnf可以去哪个网站做代练阿里指数查询
  • 福永网站推广软文写作经验是什么