uuidでインデックスを作成しない

This commit is contained in:
yuuki 2024-11-01 13:37:52 +09:00
parent 071ffab88a
commit d4575837d4
2 changed files with 8 additions and 2 deletions

View file

@ -4,7 +4,13 @@
## デバッグの開始
データベースを起動します。
依存関係をインストールします
```bash
pip install -r requirements.txt
```
データベースを起動します
```bash
docker run --detach \

2
app.py
View file

@ -66,7 +66,7 @@ async def lifespan(app: FastAPI):
)
#uuid重複する考えすぎ
ctx["mongo_client"].litey.notes.create_index("id", unique=True)
#ctx["mongo_client"].litey.notes.create_index("id", unique=True)
ctx["mongo_client"].litey.ngs.create_index("word", unique=True)
pprint(ctx)