Skip to content

/updates should be POST #10065

@cptwunderlich

Description

@cptwunderlich

The "Data updates" benchmark sends a GET request to /updates. However, this changes the DB and should not be a GET - GETs are idempotent.

This might sound like nit-picking, but I was trying to fix the benchmarks for the postgREST project, but I can't get the update benchmark to work. That's because postgREST generates a REST API out of your database and it enforces transaction access mode according to the HTTP method. I.e., it will start a READ_ONLY transaction for GET requests.

Any chance this could be configurable, as not to break existing implementations, but use POST for new ones?

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