Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb5ebd9

Browse files
author
Liudmila Mantrova
committed
Docs for manual tuning for 1C
1 parentebe8abc commiteb5ebd9

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed

‎doc/src/sgml/config-one-c.sgml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!-- doc/src/sgml/config-one-c.sgml -->
2+
3+
<appendix id="config-one-c">
4+
<title>Configuring <productname>&productname;</productname> for <productname>1C</productname> Solutions</title>
5+
<para>You can install and use <productname>&productname;</productname> with <productname>1C</productname> solutions in a client/server model. For optimal performance and stability, modify the following settings in the <filename>postgresql.conf</filename> configuration file of <productname>&productname;</productname> server:</para>
6+
7+
<orderedlist>
8+
<listitem>
9+
<para>Increase the maximum number of allowed concurrent connections to the database server, up to 1000 connections. <productname>1C</productname> solutions can open a large number of connections, even if not all of them are used, so it is recommended to allow not less than 500 connections.
10+
<programlisting>
11+
max_connections = 1000
12+
</programlisting>
13+
</para>
14+
</listitem>
15+
16+
<listitem>
17+
<para>To ensure that temporary tables are handled correctly, modify the following parameters:
18+
</para>
19+
<itemizedlist>
20+
<listitem>
21+
<para>Increase the buffer size for temporary tables:
22+
<programlisting>
23+
temp_buffers = 32MB
24+
</programlisting>
25+
</para>
26+
</listitem>
27+
28+
<listitem>
29+
<para>Increase the number of allowed locks of tables or indexes per transaction to 256: </para>
30+
<programlisting>
31+
max_locks_per_transaction = 256
32+
</programlisting>
33+
<para>Typically, <productname>1C</productname> solutions use a lot of temporary tables. Every backend process usually contains multiple temporary tables. When closing a connection, <productname>&productname;</productname> tries to drop all temporary tables in a single transactio, so this transaction may use a lot of locks. If the number of locks exceeds the <varname>max_locks_per_transaction</varname> value, the transaction will fail, leaving multiple orphaned temporary tables.
34+
</para>
35+
</listitem>
36+
</itemizedlist>
37+
</listitem>
38+
39+
<listitem>
40+
<para>Enable backslash escapes in all strings, and switch off the warning about using the backslash escape symbol:
41+
<programlisting>
42+
standard_conforming_strings = off
43+
escape_string_warning = off
44+
</programlisting>
45+
</para>
46+
</listitem>
47+
48+
<listitem>
49+
<para>Optimize query planning using <link linkend="online-analyze"><filename>online_analyze</filename></link> and <link linkend="plantuner"><filename>plantuner</filename></link> extensions, as follows:
50+
</para>
51+
52+
<itemizedlist>
53+
<listitem>
54+
<para>Add <filename>online_analyze</filename> and <filename>plantuner</filename> to the <varname>shared_preload_libraries</varname> variable.
55+
</para>
56+
<programlisting>
57+
shared_preload_libraries = 'online_analyze, plantuner'
58+
</programlisting>
59+
</listitem>
60+
61+
<listitem>
62+
<para>Enable automatic analysis of temporary tables when they are modified:
63+
</para>
64+
<programlisting>
65+
online_analyze.table_type = 'temporary'
66+
</programlisting>
67+
</listitem>
68+
69+
<listitem>
70+
<para>Tune <productname>&productname;</productname> optimizer to improve planning for recently created empty tables:
71+
</para>
72+
<programlisting>
73+
plantuner.fix_empty_table = 'on'
74+
</programlisting>
75+
</listitem>
76+
77+
<listitem>
78+
<para>Suppress detailed messages from the <filename>online_analyze</filename> extension:
79+
</para>
80+
<programlisting>
81+
online_analyze.verbose = 'off'
82+
</programlisting>
83+
</listitem>
84+
85+
</itemizedlist>
86+
</listitem>
87+
88+
</orderedlist>
89+
</appendix>

‎doc/src/sgml/filelist.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
<!ENTITY errcodes SYSTEM "errcodes.sgml">
181181
<!ENTITY features SYSTEM "features.sgml">
182182
<!ENTITY keywords SYSTEM "keywords.sgml">
183+
<!ENTITY config-one-c SYSTEM "config-one-c.sgml">
183184
<!ENTITY sourcerepo SYSTEM "sourcerepo.sgml">
184185

185186
<!ENTITY release SYSTEM "release.sgml">

‎doc/src/sgml/postgres.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@
273273
&release;
274274
&contrib;
275275
&external-projects;
276+
&config-one-c;
276277
&sourcerepo;
277278
&docguide;
278279
&demodb-bookings;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp