<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to prevent performance issues from unbounded login history growth?]]></title><description><![CDATA[<p dir="auto">Our FusionAuth instance has accumulated a large volume of login history records over time. We currently have Login Record Settings configured with unlimited retention, and we've been advised that this unbounded growth could eventually impact system performance and stability.</p>
<p dir="auto">What is the recommended approach for managing login history retention to maintain optimal performance? Is there a best practice retention period, and what should we expect when implementing a retention policy on an existing large dataset?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3372/how-to-prevent-performance-issues-from-unbounded-login-history-growth</link><generator>RSS for Node</generator><lastBuildDate>Sat, 21 Nov 2026 09:45:24 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3372.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Nov 2026 18:02:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to prevent performance issues from unbounded login history growth? on Fri, 13 Nov 2026 18:02:37 GMT]]></title><description><![CDATA[<p dir="auto">To prevent performance degradation from unbounded login history growth, you should configure a retention period in your Login Record Settings rather than keeping unlimited history.</p>
<h2>Recommended Configuration</h2>
<ol>
<li>Navigate to <strong>Settings → System → Advanced → Login Record Settings</strong></li>
<li>Enable auto-deletion of login records</li>
<li>Set a retention period (365 days is a common best practice)</li>
<li>Once configured, records older than your specified retention period will be removed on a rolling basis</li>
</ol>
<h2>What to Expect</h2>
<ul>
<li><strong>Zero downtime</strong>: This is a simple configuration change that does not require any system downtime</li>
<li><strong>Initial cleanup</strong>: After setting the retention period, FusionAuth will automatically delete existing records that exceed the retention threshold. Any existing login records older than the configured number of days become eligible for deletion based on this configuration — they are not grandfathered in.</li>
<li><strong>Rolling maintenance</strong>: Going forward, old records are automatically cleaned up, preventing the tables from growing indefinitely</li>
</ul>
<h2>Implementation Options</h2>
<p dir="auto">You can make this configuration change yourself during a convenient time. The change can be applied through:</p>
<ul>
<li><strong>Admin UI</strong>: Navigate to Settings → System → Advanced → Login Record Settings</li>
<li><strong>System Configuration API</strong>: Use a <code>PATCH</code> or <code>PUT</code> request to <code>/api/system-configuration</code> with the <code>loginRecordConfiguration</code> settings</li>
<li><strong>Terraform</strong>: Configure the <code>login_record_configuration</code> block in your system configuration resource</li>
</ul>
<p dir="auto">This proactive maintenance helps ensure your FusionAuth instance remains performant as your user base and login volume grow over time.</p>
<h2>Related Documentation</h2>
<ul>
<li><a href="https://fusionauth.io/docs/apis/system/update-the-system-configuration#request-body" rel="nofollow ugc">Update System Configuration API - Request Body</a> - Details on configuring login record retention via API, including the <code>loginRecordConfiguration.delete.enabled</code> and <code>numberOfDaysToRetain</code> parameters</li>
<li><a href="https://registry.terraform.io/providers/FusionAuth/fusionauth/latest/docs/resources/system_configuration#argument-reference" rel="nofollow ugc">Terraform System Configuration Resource</a> - Configuration reference for managing login record settings with Terraform</li>
<li><a href="https://fusionauth.io/docs/apis/login/search" rel="nofollow ugc">Search Login Records API</a> - API for searching and paginating through login records</li>
<li><a href="https://fusionauth.io/docs/apis/login/export" rel="nofollow ugc">Export Login Records API</a> - API for exporting login records to CSV format</li>
</ul>
]]></description><link>https://fusionauth.io/community/forum/post/9084</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/9084</guid><dc:creator><![CDATA[FASupportBot]]></dc:creator><pubDate>Fri, 13 Nov 2026 18:02:37 GMT</pubDate></item></channel></rss>