Subject: | searching with maypole |
If I attempt to use Class::DBI::Plugin::Pager as the pager in my Maypole Application, I get the following when I try to search:
caught model error: Can't locate object method "search_where_from_form" via package "Class::DBI::Plugin::Pager" at /usr/local/lib/perl5/site_perl/5.8.6/Maypole/FormBuilder/Model.pm line 344, <GEN4> line 3.
Can't locate object method "search_where_from_form" via package "Class::DBI::Plugin::Pager" at /usr/local/lib/perl5/site_perl/5.8.6/Maypole/FormBuilder/Model.pm line 344, <GEN4> line 3.
In the dev version, I get the other open bug:
caught model error: '1' is not a column of MegaPath::Model::Host at /usr/local/lib/perl5/site_perl/5.8.6/Class/DBI/Plugin/Pager.pm line 299
'1' is not a column of MegaPath::Model::Host at /usr/local/lib/perl5/site_perl/5.8.6/Class/DBI/Plugin/Pager.pm line 299
: at /usr/local/lib/perl5/site_perl/5.8.6/Maypole.pm line 118
You mentioned in private email that you want to do some benchmarking to see if this class is even worth it. I can assure you that it is. For large tables it's absolutely necessary. I'm querying a remote mssql database, and using limits takes a page load on a table of about 45000 rows from 40seconds down to about 5. (I had to kludge 0.56 to work with the mssql Top style limit syntax). It works great for just listing, but searching fails.
This is perl 5.8.6 running on linux.