Make WordPress Core

Opened 8 months ago

Last modified 8 months ago

#63231 new enhancement

Add support for batching GET REST API Requests

Reported by: spacedmonkey's profile spacedmonkey Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.6
Component: REST API Keywords: has-patch has-unit-tests
Focuses: rest-api, performance Cc:

Description

In response to the request for support for batching REST API requests in #50244, it is important to note that, as mentioned in the original developer’s note https://make.wordpress.org/core/2020/11/20/rest-api-batch-framework-in-wordpress-5-6/, GET requests are currently not supported. This restriction was implemented due to concerns about the potential impact on database performance if a large number of GET requests were made.

However, it is possible to mitigate this concern by limiting GET requests to users who have access to the block editor. This would allow for the efficient handling of GET requests without compromising database performance.

Change History (2)

This ticket was mentioned in PR #8649 on WordPress/wordpress-develop by @spacedmonkey.


8 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @sauravdhami
8 months ago

  • Focuses performance added

Hi, I am Saurav Dhami, and I am attending WordCamp Nepal Contributor Day for Core Table 2025. I was going through this ticket, and I was concerned about the restriction of Get API in batch processing for support. So I want to know more about this, and further, I want to know more about mitigating this concern by limiting GET requests, and my focus would be on the changed impact on the database after the concern is solved. Also, how can I contribute to solving this concern ?

Last edited 8 months ago by sauravdhami (previous) (diff)
Note: See TracTickets for help on using tickets.