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

免费学设计的网站静态网页是什么意思

免费学设计的网站,静态网页是什么意思,商业网站缩写,怎样在网上推广自己的产品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)–未完待续
http://www.w-s-a.com/news/675399/

相关文章:

  • 服务平台型网站余姚网站定制
  • 网站搭建联系方式太平阳电脑网网站模板
  • 请简述网站制作流程html5网络公司网站模板
  • 海尔集团企业网站建设分析重庆市建设银行网站
  • 介绍公司的网站有哪些广西壮族自治区
  • 网站做rss wordpress9 1短视频安装软件
  • 网站建设价格西安室内设计网站排行榜前十名知乎
  • 用nas建设服务器网站用vs做音乐网站
  • 天津市武清区住房建设网站网站自适应框架
  • 制作移动网站公司网站开发职业规划
  • 网站头部怎样做有气势wordpress 页面 锚
  • 秦皇岛网站建设系统推荐个人网站免费制作
  • 我做夫人那些年网站登录wordpress 扫码付费
  • 网站关键词代码怎么做公司 网站建设
  • 哈尔滨多语言网站建设wordpress分类链接
  • 购物网站项目介绍软件开发流程的五大步骤
  • 做的网站怎么放在网上2008 iis搭建网站
  • 网站维护服务公司上海兼职网站制作
  • 企业做网站需要多少钱湘潭九华网站
  • 嘉兴建站服务微营销官网
  • 比较好的网页模板网站浦项建设(中国)有限公司网站
  • 有趣的个人网站网页设计与制作的岗位职责
  • 有建设网站的软件吗长沙做网站的公司对比
  • 网站的外链接数中铝长城建设有限公司网站
  • 北京建设网站公司网站建设费用 无形资产
  • 适合seo的建站系统如何建立网页
  • 我想自己建立一个网站给大家分享个永久免费的云服务器
  • 怎样做网站和网站的友情链接官网优化 报价
  • 购买网站空间大小聊城网站空间公司
  • 做像美团淘宝平台网站多少钱开发网站企业