Closed rantonse closed 8 months ago
Apologies for the year-late reply. As mentioned in #90, I will archive this repo in favor of the layout: table
option which handles this properly, dealing with a large number of rows has always been a pity with pagetable. I understand that the ability to sort per-column is a great one, but might be best added as a fork of the current Pages section rather than a whole dedicated section like this plugin.
Hi! I am trying to use an SQLite database to store a particular a particular type of pages, in this case attendees for an event. (We are using to SQLite in order to integrate smoothly with iPad check-off app.)
I also posted this in the Kirby Forum, because I first thought it was a Kirby issue, but right afterwards I realized the problem mght be more this plugin: https://forum.getkirby.com/t/performance-when-storing-pages-with-sqlite-using-the-pagetable-plugin/28158/1
I am using the approach outlined in https://getkirby.com/docs/guide/virtual-pages/content-from-database, and for the most part it works great!
However, I now have a particular table of attendees with ~5000 rows, and the request, in the panel to the
attendees
page, yields a 500 Internal Server Error.type: pages
andlayout: table
in the blueprint, the problem disappears.I get the following response message in the console:
When I disabled UUID’s, I got a 502 Bad Gateway Error instead.
My
models/attendees.php
goes as follows, slightly abbreviated:The
getAttendeeDatabase
function is defined in a plugin and goes roughly like this: