In PHPMaker, under Table Options for the List Page, there is the setting Detail record count. At the moment, the number of related detail records is calculated server-side for all visible master records while rendering the list page. In lists with many rows and multiple detail tables, this can cause serious performance issues because additional count queries are executed for every visible row.
It would be very useful if Detail record count had an additional option such as Ajax or Lazy load via Ajax. In this mode, detail counts would not be calculated during the initial list rendering. Instead, they would only be loaded when the user actually expands or opens the preview area for a specific row. The counts could then be fetched via Ajax only for that single record and displayed in the detail tab badges.
This would significantly improve list page performance without losing the useful information about whether related records exist in the connected detail tables. It would be especially valuable for master/detail setups with large detail tables or with relationships that are expensive to count.