Skip to content

[refactor]: Unoptimized endpoints in searching for badges and persons through search string #273

@thedunncodes

Description

@thedunncodes

In /tahrir/tahrir/endpoints/badges.py in the tahrir repo, the endpoint that fetches badges through a query string is unoptimized, and there's a request to do so. Current bottleneck:

  • Unoptimized pagination flow which would cause a delay in cases of large dataset

The affected endpoint in tahrir: GET /api/badges/search/<search_string>

In /tahrir/tahrir/endpoints/users.py in the tahrir repo, the endpoint that fetches users through a query string is unoptimized, and there's a request to do so. Current bottleneck:

  • Unoptimized pagination flow which would cause a delay in cases of large dataset

The affected endpoint in tahrir: GET /api/users/search/<search_string>

The optimization should be done in tahrir-api, then after optimization the tahrir endpoints should also be refactored to follow up with the tahrir-api optimization

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