[PR #6303] [MERGED] perf: add index on organizations slug field #14826

Closed
opened 2026-04-13 09:39:21 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6303
Author: @matteobad
Created: 11/25/2025
Status: Merged
Merged: 12/9/2025
Merged by: @Bekacru

Base: canaryHead: feat/organizations-slug-index


📝 Commits (1)

  • 23a2c88 perf: add index on organizations slug field

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/organization/organization.ts (+1 -0)

📄 Description

Closes #6295


Summary by cubic

Add an index to organizations.slug in the Better Auth organization schema to speed up slug-based queries. Improves lookup performance with no API or behavior changes.

Written for commit 23a2c88b69. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/6303 **Author:** [@matteobad](https://github.com/matteobad) **Created:** 11/25/2025 **Status:** ✅ Merged **Merged:** 12/9/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/organizations-slug-index` --- ### 📝 Commits (1) - [`23a2c88`](https://github.com/better-auth/better-auth/commit/23a2c88b69616272cd920772efed444b49e04a4c) perf: add index on organizations slug field ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+1 -0) </details> ### 📄 Description Closes #6295 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add an index to organizations.slug in the Better Auth organization schema to speed up slug-based queries. Improves lookup performance with no API or behavior changes. <sup>Written for commit 23a2c88b69616272cd920772efed444b49e04a4c. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 09:39:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14826