You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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.
0 commit comments