Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow searching audit logs for "additional fields" values, e.g. workspace ID #16524

@mafredri

Description

@mafredri

Random thought. We haveAdditionalFields. Could we just add a custom query option toGetAuditLogsOffset that searches audit logs by their json body payload for the workspace id? Would that be too slow? Should we just add another column and allow aworkspace_id for audit logs?

Originally posted by@Emyrk in#16507 (review)


Since it's possible to create indexes on jsonb fields, we could ensure good response time for the searches as well. For instance:

CREATE INDEX ON audit_logs((additional_fields->>'workspace_id')::uuid);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp