feat: add user_id index to profiles table for faster lookups
The new index on the user_id column in the profiles table improves query performance for user-specific lookups, reducing full table scans during authentication and profile retrieval operations.
This commit is contained in:
@@ -13,7 +13,7 @@ install:
|
||||
pip install -e .
|
||||
|
||||
dev:
|
||||
uvicorn devplacepy.main:app --reload --host 0.0.0.0 --port 10500 --backlog 4096
|
||||
uvicorn devplacepy.main:app --reload --reload-dir devplacepy --host 0.0.0.0 --port 10500 --backlog 4096
|
||||
|
||||
prod:
|
||||
DEVPLACE_WEB_WORKERS=2 uvicorn devplacepy.main:app --host 0.0.0.0 --port 10500 --workers 2 --backlog 8192 --proxy-headers --forwarded-allow-ips '*'
|
||||
@@ -78,22 +78,36 @@ clean:
|
||||
rm -rf devplacepy.egg-info
|
||||
rm -rf .venv
|
||||
|
||||
.PHONY: docker-build docker-up docker-down docker-logs docker-clean
|
||||
# Container Manager works out of the box: the overlay installs the docker CLI in
|
||||
# the image and mounts the host socket. DOCKER_GID is read straight from the
|
||||
# socket so the UID-1000 app can use it; the data dir is the project's own var/
|
||||
# at its real host path, so the DooD bind-mount (host == container path) holds
|
||||
# with no /srv dir and no sudo.
|
||||
COMPOSE := docker compose -f docker-compose.yml -f docker-compose.containers.yml
|
||||
DEVPLACE_DATA_DIR ?= $(CURDIR)/var
|
||||
DOCKER_GID ?= $(shell stat -c '%g' /var/run/docker.sock 2>/dev/null)
|
||||
export DEVPLACE_DATA_DIR
|
||||
export DOCKER_GID
|
||||
|
||||
docker-build:
|
||||
docker compose build
|
||||
.PHONY: docker-build docker-up docker-down docker-logs docker-clean docker-prep
|
||||
|
||||
docker-up:
|
||||
docker compose up -d
|
||||
docker-prep:
|
||||
mkdir -p $(DEVPLACE_DATA_DIR)
|
||||
|
||||
docker-build: docker-prep
|
||||
$(COMPOSE) build
|
||||
|
||||
docker-up: docker-prep
|
||||
$(COMPOSE) up -d
|
||||
|
||||
docker-down:
|
||||
docker compose down
|
||||
$(COMPOSE) down
|
||||
|
||||
docker-logs:
|
||||
docker compose logs -f
|
||||
$(COMPOSE) logs -f
|
||||
|
||||
docker-clean:
|
||||
docker compose down -v
|
||||
$(COMPOSE) down -v
|
||||
|
||||
deploy:
|
||||
git checkout production
|
||||
|
||||
Reference in New Issue
Block a user