postgresql

2 views
Skip to first unread message

duyue

unread,
Apr 14, 2012, 1:23:01 PM4/14/12
to 北航开源软件俱乐部
hi, all

今天鼓捣了一下postgresql, 发现postgresql非常好用啊.

* 安装比mysql方便
* 有图形化管理工具pgadmin3
* key/value, postgres有hstore. 可以对hstore加索引, 可以对hstore中的字段添加索引
    * mysql做个schemaless累死了, 做索引的话, 非常麻烦
* 我把shurl改造了一下, 用postgresql来做存储. 
    * github: https://github.com/lyxint/shurl/tree/postgres
    * 简单测试了一下, 10进程插入10000条url, postgres分支比原来用纯文件做存储的master分支慢多了
       * master: 29s
       * postgres: 1min20s



Zuyang Kou

unread,
Apr 14, 2012, 1:25:31 PM4/14/12
to beihang-open...@googlegroups.com
为啥比文本还慢?建索引如此之慢?

2012/4/15 duyue <lyx...@gmail.com>:

> --
> Beihang Open Source Club mailing list
> * beihang-open...@googlegroups.com
> * http://groups.google.com/group/beihang-open-source-club
> * Etiquette: http://code.google.com/p/bhosc/wiki/mailing_list_etiquette
> * Unsubscribe: beihang-open-sourc...@googlegroups.com

--
Code is poetry.

duyue

unread,
Apr 14, 2012, 1:35:01 PM4/14/12
to beihang-open...@googlegroups.com


On Sun, Apr 15, 2012 at 1:25 AM, Zuyang Kou <lea...@gmail.com> wrote:
为啥比文本还慢?建索引如此之慢?

刚才我把postgres的链接池上限改为1000, 变成35秒了, 还是比纯文件的慢几秒

Reply all
Reply to author
Forward
0 new messages