Skip to content

Optimise REST calls for fetching resource #322

@almightyrush

Description

@almightyrush

Describe your enhancement idea

Currently for fetching CICS resources, it does 3 REST calls.

  1. Generating a cache token and fetching record count
  2. Getting the first page based on the count
  3. Invalidate the cache as its the last page (also the first page).

This also happens if the data is less even to paginate. This adds some latency for performing actions on resources or fetching small set of records where pagination is not required.

A suggestion to optimise it is:

  1. Generating a cache token and fetching record count.
  2. Check if the record count is less than the paginate limit and fetch the records without NODISCARD.

That will prevent the unwanted additional call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions