Filament Performance: 1M DB Rows - Benchmark

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Let's test if Filament is slower with larger amount of data, and discuss the SQL queries under the hood.
    Links mentioned in the video:
    Official Filament Demo on GitHub: github.com/fil...
    SQL dump of the database shown in the video: drive.google.c...
    Filament issue I've opened: github.com/fil...
    My Eloquent courses: laraveldaily.c...
    More Filament examples on our website: filamentexampl...

ความคิดเห็น • 30

  • @hussain4real
    @hussain4real 3 หลายเดือนก่อน +15

    I tend to cache anything that has to do with count, either in widgets or navigation badge

  • @OS-Advertising
    @OS-Advertising 2 หลายเดือนก่อน +3

    to be honest 2.5s for 1M rows is fine for me, i can deal with that

  • @darkbelg
    @darkbelg 3 หลายเดือนก่อน +3

    I'm not convinced of the conclusion. Unless filament have done some performance optimalizations this is not what my experience is.
    The demonstration of 10 items taking 800ms raises some questions about performance. I'm curious to know if this is within the expected range for this type of implementation. Would it be possible to explore the impact of increasing the number of records per page, say to 100, to better understand the performance impact?
    I'm missing insights on possible livewire performance issues.
    I also made a project in filament. According to debug bar it takes 703ms to load the page but database retrieval was only 10 ms. Where did the other ms go? This is with octane and 100 items per page.
    As for the graphs if they are a separate ajax call. I don't see why you would remove them. They don't slow down the call to show the data, right?

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +2

      Good and valid questions. I guess there should be a separate video about the Livewire and front-end part of Filament and how it works. But should it be the same example?
      Or can you give me access to that 800ms project so I would investigate?

  • @khafi22
    @khafi22 3 หลายเดือนก่อน +1

    Actually, part of filament slowness is due to livewire and nested views

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      Yes but I'm yet to experience/reproduce it in my projects. Do you have any examples or screenshots or links?

  • @kreaweb-be
    @kreaweb-be 3 หลายเดือนก่อน

    Helas, aggregate functions (SUM, AVG,...) can not be indexed on SQL.

  • @vitaliejalbu8206
    @vitaliejalbu8206 3 หลายเดือนก่อน

    here is, thak you bery much

  • @FindWebX
    @FindWebX 3 หลายเดือนก่อน

    Thank you

  • @renatofrota
    @renatofrota 3 หลายเดือนก่อน +2

    Did you try enabling SPA mode? The counters on sidebar would not run multiple times, I suppose.

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +3

      No I didn't, would be an interesting experiment.

  • @mori181186
    @mori181186 3 หลายเดือนก่อน +2

    Video Request: Add a Filament Form in the frontend, without loggedin user.

    • @tahinuralam
      @tahinuralam 3 หลายเดือนก่อน

      Yes unauthenticated Page with infolist layout that means a landing page

    • @krekas
      @krekas 3 หลายเดือนก่อน

      form the form you can add it to a livewire component. for the infolist should be the same

    • @tahinuralam
      @tahinuralam 3 หลายเดือนก่อน

      @@krekas but how to add multiple table/widegt in infolist ?
      Thanks in advance

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      @mori I already have a video about Filament forms on the front-end: th-cam.com/video/QZBXG8OSz7U/w-d-xo.html

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      @tahinuralam personally, I wouldn't build a LANDING page with Filament. It's not its core purpose. I would better use some Tailwind/Bootstrap theme.

  • @phoenixedge4049
    @phoenixedge4049 3 หลายเดือนก่อน

    Can you do a video on how best to cache some of these things?

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      I wrote about it as a part of a premium tutorial from Laravel side on my LaravelDaily: laraveldaily.com/post/eloquent-performance-enum-int-tinyint-and-softdeletes

  • @hshxy
    @hshxy 3 หลายเดือนก่อน

    Video request: Grid view, where you can view recurring tasks with their deadline dates.

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      Can you link to any screenshot how exactly it would look? I mean not in filament, in any other system.

    • @hshxy
      @hshxy 3 หลายเดือนก่อน

      @@FilamentDaily I just tried adding a link but seems like youtube deleted my comment automatically 😕

    • @hshxy
      @hshxy 3 หลายเดือนก่อน

      Do you have a contact like an email where I could send you this?

    • @FilamentDaily
      @FilamentDaily  3 หลายเดือนก่อน +1

      Yeah, email me povilas@laraveldaily.com

  • @ellmatic
    @ellmatic 3 หลายเดือนก่อน

    RELAUNCH TO UPDATE