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

网站设计与制作的流程猪八戒网站 怎么做兼职

网站设计与制作的流程,猪八戒网站 怎么做兼职,门户网站的类型,常州网站seoPostgreSQL 字段使用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)–未完待续
http://www.w-s-a.com/news/386724/

相关文章:

  • dede网站 地图什么做有没有做黑市网站
  • 做网站参考文献域名如何做网站
  • 怎么选择网站开发英文网站建设用途
  • 怎样做电子商务网站织梦生成手机网站
  • 公司网站建设选什么服务器网站里怎样添加关键词
  • 深圳建设局网站深业中城绿化项目营销型网站开发流程包括
  • 找销售的网站九江市建设项目服务中心
  • 东原ARC网站建设公司合肥seo网站推广外包
  • 那个网站是做房产中介的网站制作软件小学
  • 做网页怎么建站点视频解析网站
  • 做网站的系统设计网站设计论文前言
  • 做外贸网站多久更新汕头市建设局网站首页
  • 如何建设专业化的网站手机管理网站模板
  • 花生壳做网站如何用腾讯云做网站
  • 搭建集团网站开发app需要哪些软件
  • 网站建设 中企动力福州阀门wordpress 多说评论
  • php网站集成支付宝接口下载免费网络软件
  • 卡盟网站是怎么建设的用花生壳做网站速度可以吗
  • 杭州物联网前十名公司优秀seo平台
  • 网新中英企业网站管理系统wordpress 登录 缓存
  • wordpress模板建站教程wordpress添加广告位手机自适应
  • h5游戏平台入口优化是什么梗
  • 建设银行对公网站打不开网络推广活动方案主题和思路
  • 茶叶网站开发目的和意义网页设计需要考什么证
  • 高端企业网站建设公司怎么做实用性建设网站都需要哪些
  • 网站备案必须要幕布吗易企秀网站怎么做轮播图
  • 南昌网站排名优化四线城市网站建设方向及营利点
  • 做网站需要钱吗unity 做网站
  • 呼伦贝尔市规划建设局网站wordpress怎么考别人的
  • 免备案自助建站网站成都神速建站