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 help with aggregation & group by
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
 
David Lee  
View profile  
 More options Jan 3 2008, 5:11 pm
From: David Lee <davidomu...@gmail.com>
Date: Thu, 3 Jan 2008 14:11:17 -0800 (PST)
Local: Thurs, Jan 3 2008 5:11 pm
Subject: Re: help with aggregation & group by
Another food for thought would be to have the Order.query cache the
generated SQL query so the second time the block is run, it doesn't
have to generate the SQL code all over again.

A potential problem is the fixation of dynamically generated values
such as the "market" or "ack_stamp" variables in the example code.

I'm not sure how far you can go with ParseTree, but you could search
for the presence of dynamic elements (variables, methods...) in the
block passed to Order.query and turn on caching only if it only
contains static elements (constants, integers, symbols...).


 
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.