Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Soo's avatar
Level 2

how to improve the performance of my react laravel application

Hello my friend , i'm actually working on an application with laravel and react ,i have a probleme when i reload an interface have a table of data (liste of data) the data appear after seven seconds , why ? how can i fasting the appears of data?

0 likes
5 replies
jlrdw's avatar

How much data, a thousand rows load faster than 500,000.

Do you have the N + 1 problem.

Try paginating server side. Don't load all then paginate.

Make sure you have setup indexes where needed.

Etc. And take the learn laravel in 30 days free training.

2 likes
Soo's avatar
Level 2

@jlrdw I already paginating the data and i do not have many rows (some rows just for testing the fonctionnal of API)

martinbean's avatar

@soo You need to actually diagnose the problem before you can fix it. It could be one or more of many different things.

You’ve been given some good pointers by @jlrdw in what to look for. You should use your browser’s developer console to check if it’s the server-side request taking the majority of the time, or if it’s the client side (React code). Once you’ve determined which side is accounting for most of the time, then that will tell you where you need to continue looking into. As for example, there’s no point looking through your React code if it’s your server taking almost seven seconds to return a response.

2 likes
Soo's avatar
Level 2

@martinbean How can i Know the probleme come from the client side or server side ?

martinbean's avatar

@Soo I literally told you how: by using your browser’s console to see if it’s the back-end request taking many seconds or not.

2 likes

Please or to participate in this conversation.