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 when filtering or joining by user identifier, reducing full table scans during profile retrieval operations.
This commit is contained in:
2026-05-12 13:07:34 +00:00
parent 89db47b831
commit 353968513c
69 changed files with 3069 additions and 450 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY pyproject.toml .
COPY devplacepy/ devplacepy/
RUN pip install --no-cache-dir .
RUN mkdir -p /app/data /app/devplacepy/static/uploads/attachments
EXPOSE 10500
HEALTHCHECK --interval=30s --timeout=10s --retries=3 --start-period=10s \
CMD curl -f http://localhost:10500/ || exit 1
CMD ["uvicorn", "devplacepy.main:app", "--host", "0.0.0.0", "--port", "10500", "--workers", "4", "--backlog", "8192"]