Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Good code or good templates (Maypole)

by zby (Vicar)
on Mar 25, 2005 at 21:47 UTC ( [id://442417]=note: print w/replies, xml ) Need Help??


in reply to Re: Good code or good templates (Maypole)
in thread Good code or good templates (Maypole)

Maypole is designed to have some CRUD (CReate, Update, Delete) database web app very quick. And it is good at that. If your app fits that model well than you have saved lot's of time if not you will have to spend a lot of time to add the missing functionality. I thought that CRUD could quite flexible if you were allowed to use database views but first views were not supported by the Maypole libraries (I eventually got it working with some patches with Postgresql), second it still is not that flexible as I thought.

And the last point the paging is not done right - at last in search, I remember, all the data is fetched first from the database and only then the items for the current page are filtered. So if you have in your database hundreds of thousends of records you'll have all of them in the memory in one huge array only to filter then a few of them.

  • Comment on Re^2: Good code or good templates (Maypole)

Replies are listed 'Best First'.
Re^3: Good code or good templates (Maypole)
by autarch (Hermit) on Mar 27, 2005 at 15:15 UTC

    I remember, all the data is fetched first from the database and only then the items for the current page are filtered. So if you have in your database hundreds of thousends of records you'll have all of them in the memory in one huge array only to filter then a few of them.

    This is a problem with Class::DBI, not Maypole. Class::DBI::Iterator fetches all the data and stores it as an array, as opposed to wrapping the underlying DBI statement handle.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://442417]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-24 13:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found