- 论坛徽章:
- 0
|
机器1:PIII 800,内存256M。
在Red Hat Linux AS2.1上装的PostgreSql7.4.
在一个数据库里面的一个表里加入了100万条记录
如果没有索引,从中选择一条需要4秒多,
如果有索引,从中选择一条需要1秒多。
这样的情况是否正常?
机器2:cpu:Inter Xeon2.8 G ×4 内存:1G
这个服务器的记录插入速度只有可怜的38个左右每秒。
可机器1的记录插入速度是600个左右每秒。
这是什么问题啊?难道PostgreSql不支持多cpu?还是什么其他原因。
安装时的./configure 里面都用了默认设置,不知道哪里要优化?
机器2的logfile里面比机器1多了一些
ERROR: Function 'pg_client_encoding()' does not exist
Unable to identify a function that satisfies the given argument types
You may need to add explicit typecasts
Unsupported frontend protocol.
各位帮帮忙啊,谢谢了:) |
|