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:
parent
5535f87672
commit
e429664bb8
@ -8,7 +8,8 @@ export class ApiDocs {
|
||||
this.copy = new CodeCopy();
|
||||
const mounts = document.querySelectorAll("[data-api-tester]");
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user