uuidでインデックスを作成しない
This commit is contained in:
parent
071ffab88a
commit
d4575837d4
2 changed files with 8 additions and 2 deletions
|
@ -4,7 +4,13 @@
|
||||||
|
|
||||||
## デバッグの開始
|
## デバッグの開始
|
||||||
|
|
||||||
データベースを起動します。
|
依存関係をインストールします
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install -r requirements.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
データベースを起動します
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --detach \
|
docker run --detach \
|
||||||
|
|
2
app.py
2
app.py
|
@ -66,7 +66,7 @@ async def lifespan(app: FastAPI):
|
||||||
)
|
)
|
||||||
|
|
||||||
#uuid重複する?考えすぎ?
|
#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)
|
ctx["mongo_client"].litey.ngs.create_index("word", unique=True)
|
||||||
|
|
||||||
pprint(ctx)
|
pprint(ctx)
|
||||||
|
|
Loading…
Add table
Reference in a new issue