Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Last retrieved data accessible in model?..
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
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
 
jayarjo  
View profile  
 More options Nov 7, 8:06 pm
From: jayarjo <jaya...@gmail.com>
Date: Sat, 7 Nov 2009 01:06:39 -0800 (PST)
Local: Sat, Nov 7 2009 8:06 pm
Subject: Last retrieved data accessible in model?..

I wonder whether data retrieved by last query (as a result of Model-

>find() for example) is accessible in some internal Model variable?

I'm trying to build custom datasource and one of the ideas was to
store last retrieved data in there somewhere, but I'm not sure whether
this is established practice.

    Reply    Reply to author    Forward  
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.
jperras  
View profile  
 More options Nov 8, 7:37 pm
From: jperras <joel.per...@gmail.com>
Date: Sun, 8 Nov 2009 00:37:27 -0800 (PST)
Local: Sun, Nov 8 2009 7:37 pm
Subject: Re: Last retrieved data accessible in model?..
How would you get it to persist between requests?

`var $cacheQueries = true;` will cache the results of model queries in
memory, which might be what you're looking for. If you're looking for
something that can persist the last accessed data across requests, I'd
implement what you're describing by implementing a Model::afterFind()
in your app_model which caches the results.

-jperras.

On Nov 7, 4:06 am, jayarjo <jaya...@gmail.com> wrote:


    Reply    Reply to author    Forward  
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.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google