We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ff9de commit 491e39fCopy full SHA for 491e39f
stac_fastapi/mongo/stac_fastapi/mongo/app.py
@@ -20,7 +20,11 @@
20
)
21
from stac_fastapi.extensions.third_party import BulkTransactionExtension
22
from stac_fastapi.mongo.config import AsyncMongoDBSettings
23
-from stac_fastapi.mongo.database_logic import DatabaseLogic, create_collection_index
+from stac_fastapi.mongo.database_logic import (
24
+ DatabaseLogic,
25
+ create_collection_index,
26
+ create_item_index,
27
+)
28
29
settings = AsyncMongoDBSettings()
30
session = Session.create_from_settings(settings)
@@ -71,6 +75,7 @@
71
75
@app.on_event("startup")
72
76
async def _startup_event() -> None:
73
77
await create_collection_index()
78
+ await create_item_index()
74
79
80
81
def run() -> None:
0 commit comments