<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SQLiteIndexes</id>
	<title>SQLiteIndexes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=SQLiteIndexes"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SQLiteIndexes&amp;action=history"/>
	<updated>2026-08-27T21:12:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=SQLiteIndexes&amp;diff=3335&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=SQLiteIndexes&amp;diff=3335&amp;oldid=prev"/>
		<updated>2016-04-06T20:36:22Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I have a Debian/Lenny server with its RT package (3.6.2), using [[SQLite]], which is the default, and should be enough for my current needs.&lt;br /&gt;
&lt;br /&gt;
Quite quickly, it became very slow. E.g. &amp;#039;Display&amp;#039; for a ticket took around 8 seconds on an idle server.&lt;br /&gt;
&lt;br /&gt;
I looked around a bit, activated SQL logging, then found out that the [[SQLite]] schema has fewer indexes than other schemas. I created the indexes that are in schema.Pg and not in schema.[[SQLite]], and changed one to be as in schema.Pg, and &amp;#039;Display&amp;#039; is less than 1 second now.&lt;br /&gt;
&lt;br /&gt;
To do this, I did:&lt;br /&gt;
&lt;br /&gt;
 sqlite3 /var/lib/dbconfig-common/sqlite3/request-tracker3.6/rtdb&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX Principals2 ON Principals (ObjectId);&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX Groups2 On Groups  (Type, Instance, Domain);&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX  ACL1 on ACL(RightName, ObjectType, ObjectId,PrincipalType,PrincipalId);&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX CachedGroupMembers2 on CachedGroupMembers (MemberId);&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX CachedGroupMembers3 on CachedGroupMembers (GroupId);&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX DisGrouMem  on CachedGroupMembers (GroupId,MemberId,Disabled);&lt;br /&gt;
 sqlite&amp;amp;gt; drop index ObjectCustomFieldValues1;&lt;br /&gt;
 sqlite&amp;amp;gt; CREATE INDEX ObjectCustomFieldValues1 ON ObjectCustomFieldValues (CustomField,ObjectType,ObjectId,Content);&lt;br /&gt;
 sqlite&amp;amp;gt; .quit&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
The difference between the indexes in the various schemas is still (mostly?) the same as of RT 3.8.4.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>