Skip to content

"read-only" DB mode, and optional index creation #28

@GorgiAstro

Description

@GorgiAstro

Hi,

First of all thanks for the awesome mongo backend.

Is it possible to have a mode where the MongoDB is not written? For safety reasons I am using stac_fastapi_mongo with a read-only MongoDB user.
The only issue I have is the calls create_collection_index() and create_item_index() which I had to comment out, otherwise it causes an error because of my read-only MongoDB user. I don't need to create these MongoDB indexes because my software which feeds data into the MongoDB already takes care of it, so it would be nice to make this optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions