Skip to content

pres_ex_v2 records building up in the wallet #1038

@jamshale

Description

@jamshale

presentation records are building up in the database. These object are large and at production scale can quickly cause problems.

After looking at the bcgov dev wallet there are records which are tagged like

                "value": {
                    "thread_id": "45abdc1d-8e0a-4c15-b5ce-27628570d21f",
                    "created_at": "2026-03-30T23:55:46.790306Z",
                    "updated_at": "2026-03-30T23:56:14.934416Z",
                    "connection_id": "eb9cd103-39e2-4b7c-b5e3-3e0bba1a7d06",
                    "initiator": "self",
                    "role": "verifier",
                    "state": "done",
                    "verified": "true",
                    "verified_msgs": [],
                    "auto_present": false,
                    "auto_verify": true,
                    "error_msg": null,
                    "trace": false,
                    "auto_remove": false,
                    "auto_remove_on_failure": false,
                    "pres_request": {
                        "@type": "https://didcomm.org/present-proof/2.0/request-presentation",
                        "@id": "45abdc1d-8e0a-4c15-b5ce-27628570d21f",
                        "will_confirm": true,
                        "formats": [
                            {
                                "attach_id": "indy",
                                "format": "hlindy/proof-req@v2.0"
                            }
                        ],
                        "request_presentations~attach": [
                            {
                                "@id": "indy",
                                "mime-type": "application/json",
                                "data": {
                                    "base64": "..."
                                }
                            }
                        ]
                    },
                    "pres": {
                        "@type": "https://didcomm.org/present-proof/2.0/presentation",
                        "@id": "d3f43f6a-3745-4e15-a743-a83dbb3e669d",
                        "~thread": {
                            "thid": "45abdc1d-8e0a-4c15-b5ce-27628570d21f"
                        },
                        "~please_ack": {
                            "on": [
                                "RECEIPT"
                            ]
                        },
                        "formats": [
                            {
                                "attach_id": "f90c1205-c9d5-4eb0-a6aa-8962984b41b0",
                                "format": "hlindy/proof@v2.0"
                            }
                        ],
                        "presentations~attach": [
                            {
                                "@id": "f90c1205-c9d5-4eb0-a6aa-8962984b41b0",
                                "mime-type": "application/json",
                                "data": {
                                    "base64": ..."

Note: The auto_remove and auto_remove_on_failure are both false. Maybe there's a mis-configuration or a problem in acapy itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions