Fri Sep 30 19:31:52 PDT 2005
- Previous message: [Slony1-commit] By cbbrowne: Add a discussion of the need for an index on
- Next message: [Slony1-commit] By cbbrowne: Modify several locations to reference 1.1.1 rather than
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
Add discussion of extra index on sl_log_1 on log_xid column
Modified Files:
--------------
slony1-engine/doc/adminguide:
bestpractices.sgml (r1.11 -> r1.12)
faq.sgml (r1.44 -> r1.45)
-------------- next part --------------
Index: bestpractices.sgml
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/doc/adminguide/bestpractices.sgml,v
retrieving revision 1.11
retrieving revision 1.12
diff -Ldoc/adminguide/bestpractices.sgml -Ldoc/adminguide/bestpractices.sgml -u -w -r1.11 -r1.12
--- doc/adminguide/bestpractices.sgml
+++ doc/adminguide/bestpractices.sgml
@@ -360,6 +360,12 @@
<itemizedlist>
+<listitem><para> Ensure that there exists, on the
+<quote>master</quote> node, an index on <function> sl_log_1(log_xid)
+</function>. If it doesn't exist, as the &slony1; instance was set up
+before version 1.1.1, see <filename> slony1_base.sql </filename> for
+the exact form that the index setup should take. </para> </listitem>
+
<listitem><para> On the subscriber's <xref linkend="slon">, increase
the number of <command>SYNC</command> events processed together, with
the <xref linkend= "slon-config-sync-group-maxsize"> parameter to some
Index: faq.sgml
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/doc/adminguide/faq.sgml,v
retrieving revision 1.44
retrieving revision 1.45
diff -Ldoc/adminguide/faq.sgml -Ldoc/adminguide/faq.sgml -u -w -r1.44 -r1.45
--- doc/adminguide/faq.sgml
+++ doc/adminguide/faq.sgml
@@ -1669,6 +1669,23 @@
<quote>new</quote> column names, work just fine.
</para> </answer></qandaentry>
+<qandaentry>
+<question> <para> Replication has fallen behind, and it appears that the
+queries to draw data from <xref linkend="table.sl-log-1">/<xref
+linkend="table.sl-log-2"> are taking a long time to pull just a few
+<command>SYNC</command>s. </para>
+</question>
+
+<answer> <para> Until version 1.1.1, there was only one index on <xref
+linkend="table.sl-log-1">/<xref linkend="table.sl-log-2">, and if
+there were multiple replication sets, some of the columns on the index
+would not provide meaningful selectivity. If there is no index on
+column <function> log_xid</function>, consider adding it. See
+<filename>slony1_base.sql</filename> for an example of how to create
+the index.
+</para>
+</answer>
+</qandaentry>
</qandaset>
<!-- Keep this comment at the end of the file Local variables:
- Previous message: [Slony1-commit] By cbbrowne: Add a discussion of the need for an index on
- Next message: [Slony1-commit] By cbbrowne: Modify several locations to reference 1.1.1 rather than
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list