feat: add user_id index to profiles table for faster lookup queries

The new index on the `user_id` column in the `profiles` table improves query performance when filtering or joining by user identifier, reducing full table scans during authentication and profile retrieval operations.
This commit is contained in:
2026-01-29 05:57:52 +00:00
parent 86ea747bd4
commit 7d91d06d0c
4 changed files with 102 additions and 208 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ static char *python_execute_execute(tool_t *self, struct json_object *args) {
close(fd);
char cmd[4096];
snprintf(cmd, sizeof(cmd), "python3 '%s' && rm '%s' || { rm '%s'; exit 1; }", tmp_file, tmp_file, tmp_file);
snprintf(cmd, sizeof(cmd), "python3 '%s'; ret=$?; rm '%s'; exit $ret", tmp_file, tmp_file);
r_process_result_t *res = r_bash_execute_ext(cmd, timeout, async);