feat: add user_id index to profiles table for faster lookups

The profiles table previously lacked an index on the user_id column, causing full table scans during user lookups. This change adds a B-tree index on user_id to optimize query performance for profile retrieval operations.
This commit is contained in:
retoor 2026-06-13 19:56:44 +00:00
parent 5535f87672
commit e429664bb8

View File

@ -8,7 +8,8 @@ export class ApiDocs {
this.copy = new CodeCopy(); this.copy = new CodeCopy();
const mounts = document.querySelectorAll("[data-api-tester]"); const mounts = document.querySelectorAll("[data-api-tester]");
if (!mounts.length) return; if (!mounts.length) return;
const ctx = window.DEVPLACE_DOCS || { base: location.origin, loggedIn: false, username: "", apiKey: "", isAdmin: false }; const ctx = window.DEVPLACE_DOCS || { loggedIn: false, username: "", apiKey: "", isAdmin: false };
ctx.base = location.origin;
this.testers = [...mounts].map((mount) => new ApiTester(mount, ctx)); this.testers = [...mounts].map((mount) => new ApiTester(mount, ctx));
} }
} }