如何提高AgensGraph的性能?

时间:2018-12-18 04:46:59

标签: agens-graph

我的项目进入测试阶段。

但是,当大型数据集超过千兆字节时,我会遇到性能不足的问题。

AgensGraph上是否有可旋转的参数?

1 个答案:

答案 0 :(得分:0)

首先,您可以在“ initdb”消息中找到安装目录。

$ initdb
The files belonging to this database system will be owned by user "agens".
This user must also own the server process.

The database cluster will be initialized with locale "ko_KR.UTF-8".
The default database encoding has accordingly been set to "UTF8".
initdb: could not find suitable text search configuration for locale "ko_KR.UTF-8"
The default text search configuration will be set to "simple".

Data page checksums are disabled.

creating directory /Users/agens/Downloads/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    ag_ctl -D /Users/agens/Downloads/pgsql/data -l logfile start

第二,将当前目录更改为agens数据目录。

$ cd /Users/agens/Downloads/pgsql/data

最后,您可以在配置文件中找到缓冲区大小参数。

$ grep shared_buffer postgresql.conf
shared_buffers = 128MB      # min 128kB
#wal_buffers = -1           # min 32kB, -1 sets based on shared_buffers

“ shared_buffers”参数是搜索性能的关键因素。

建议的缓冲区大小是整个数据的最小值和系统内存的一半。

相关问题