PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

All users listed

Solved
dev42

Nov 5th, 2022 09:38 AM

I'm using Wave 2.0, I passed the number of 5K registered users and problems started to appear. Previously, the user page was loading very slowly, I couldn't find time to focus on this problem.

After doing my checks, I realized that while the user page is loading, it lists all users, the page is extremely slow, and it gives a "504 Gateway Time-out" error. To fix this problem, I enabled users' BREAD Server-side paging, but it gave an error. (I have uploaded a screenshot of the error)

Could you please give me a hint on how to solve this problem? A normal listing is enough for me.screenshot-new.orananaliziyap.com-2022.11.05-19_24_10.jpg

bobbyiliev

Nov 6th, 2022 01:03 AM

Best Answer

Hi there,

Thanks for reporting that problem!

Indeed enabling server-side pagination via your BREAD editor is the way to go.

Regarding the error that you are seeing, it seems like that Voyager has made some updates to the template file, luckily the fix is pretty straightforward. You just need to update the user browse blade template with:

cp vendor/tcg/voyager/resources/views/bread/browse.blade.php resources/views/vendor/voyager/users/browse.blade.php 

I have submitted a PR with a fix for this here:

https://github.com/thedevdojo/wave/pull/78

Let me know if anything else pops up!

Best,

Bobby

Report
1
dev42

Nov 17th, 2022 10:53 AM

Works very well

Report
1
bobbyiliev

Nov 18th, 2022 02:29 AM

Happy to hear that it is all working!