Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Paginating Related Objects from an instance of an object.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Cristiano Cinotti  
View profile  
 More options Jun 6 2012, 1:44 pm
From: Cristiano Cinotti <cristianocino...@gmail.com>
Date: Wed, 6 Jun 2012 19:44:25 +0200
Local: Wed, Jun 6 2012 1:44 pm
Subject: Re: [propel-dev] Paginating Related Objects from an instance of an object.

Hi, imho you should try to use PropelOnDemandFormatter, which hydrates
objects one by one, while you're using them. Get a look here
http://www.propelorm.org/reference/model-criteria.html. Cheers

Il giorno 06/giu/2012 19.03, "zeuben" <zeu...@gmail.com> ha scritto:

> I have reached a point where some particular objects in my model

(People), have literally thousands of items related to them.

> loading the 'detail' view for a person blows the memory limit if they

have a lot of items related to them.

> is there any way to 'paginate' the $detailItem->getRelatedObjectName()

[i.e. $person->getImages() ] methods to return an instance of
PropelModelPager?

> i know you can limit it outright with the criteria/modelQuery class, but

that is sort of clunky.
> another method would be to not use the ->getRelatedObjectName() method at

all and do a separate query.

> any ideas?

> --
> You received this message because you are subscribed to the Google
> Groups "Propel Development" group.
> To post to this group, send email to propel-development@googlegroups.com
> To unsubscribe from this group, send email to
> propel-development+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/propel-development


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.