Skip to content

Completed Filings/Temps Validation in Affiliations #29632

Open
0 of 1 issue completed
Open

Description

@Rajandeep98

What is the problem?

  • Currently in Auth-db prod, There are over 50k Temp/bootstrap Identifiers that have already been completed (i.e., associated with active businesses or have business numbers) . These contribute to increased response times for the /affiliation/search API call used by the Business Registry Dashboard (BRD).

What is the impact?

  • Longer wait times for users in loading BRD

Proposed solution

  1. Setting the 'is_lear_loaded' flag false in entities table in auth can automatically ignores these rows for querying.

Approvals Required:

  • Olga / Mihai
  • Omid/Eve
  • Travis
  • Argus/Vysakh
  • Severin

Pre-Requisites:

  • Validate the existing workflows , if any, using Temp filings from endpoint /affiliations/search [namex/lear]

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    Entities Team
    Needs Decision
    on Jul 17, 2025
  2. added theissue type on Jul 17, 2025
  3. changed the title [-]Copy of Consumed NRs Validation in Affiliations[/-] [+]Completed Filings/Temps Validation in Affiliations[/+] on Jul 17, 2025
  4. vikas-gov commented on Jul 17, 2025

    @vikas-gov
    Collaborator

    Move this to next phase of BRD performance improvements.

  5. Rajandeep98 commented on Jul 17, 2025

    @Rajandeep98
    CollaboratorAuthor
    • Check on Withdrawn Filings Workflow
  6. vysakh-menon-aot commented on Jul 22, 2025

    @vysakh-menon-aot
    Contributor

    @Rajandeep98 As discussed my suggestion would be to delete the temp identifier entity once the business is created

    @seeker25

  7. severinbeauvais commented on Jul 23, 2025

    @severinbeauvais
    Collaborator

    Rajan and I chatted about this today and this is my understanding:

    • the affiliation record, which links the NR (optional) with the temp id and the business id, will remain (ie, for future auditing purposes)
    • in Entities side, we want to remove the temp id mapping if there is also a business id mapping; this will reduce db scan time and improve performance
    • some current code needs to be updated to automatically delete these in the future
    • there will be no change to what the user sees (ie, affiliations)

    Based on this, I approve this change and cleanup of the completed temp filings.

  8. added
    Names Team
    on Jul 23, 2025
  9. eve-git commented on Jul 23, 2025

    @eve-git
    Collaborator

    There are no issues on the Names side.

  10. removed
    Names Team
    on Jul 23, 2025
  11. seeker25 commented on Jul 24, 2025

    @seeker25
    Contributor

    @vysakh-menon-aot I think that's a good idea

  12. removed
    Needs Decision
    on Jul 25, 2025
  13. removed their assignment
    on Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions