whilst debugging my last issue I noticed that if you debug what is going on in list action, you will notice 1 extra call to collect a row from the db even though it isnt displayed to the user, config.list.per_page=1 and add a debug line into _list_actions (override in active_scaffold_overrides), only on the list view landing page
added <%=debug record %> into the list action to see what was happening 1. goto list view e.g. "/players" output shows AS reads the same row of records twice 2. navigate a page fwd with the Next button output shows the row once 3. navigate a page bwd with Prev button output shows the row is read once Its a bit odd to have this extra call, not sure if anyone else realizes but it make a difference in performance running on a slow laptop for testing, As I have set config.columns["mycol"].associated_limit = 25, and have 15 columns per row, this reads an extra 40 db calls, as it is the main way users view most records (default to click on the list view) - its quite alarming the extra work being done. Any one who could help remove this extra call?! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ActiveScaffold : Ruby on Rails plugin" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/activescaffold?hl=en -~----------~----~----~----~------~----~------~--~---
