Re: reading params from a file v/s getting them from a file

2007-04-16 Thread Tom Chiverton
On Friday 13 Apr 2007, George Abraham wrote:
 Hmm, maybe I can learn some stuff here about session variables. Well, the
 parameters (and their values) themselves are sizeable in nature. Sort of
 like defaultTextForMessage='some text 150 characters long' and so on. Is
 storing them in the session advisable?

Well, if it's application wide, something like Application rather than Session 
might be best. If you have multiple applications/skins and swap at runtime 
based on username, then Session may be best.
Either way, if you are so tight on memoray that a few extra hundreds of K are 
an issue, you have other problems :-)

-- 
Tom Chiverton
Helping to adaptively aggregate edge-of-your-seat bandwidth
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7  
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275312
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: reading params from a file v/s getting them from a file

2007-04-15 Thread George Abraham
Thanks for your input Justin. However, I already have a bunch of heavy-duty
CFCs running in the application scope. I was thinking that I did not want to
increase that load. I also don't know how much is enough in the application
scope. I should probably just get something like SeeFusion and go do a bunch
of tests. Ah well!

George

On 4/13/07, Justin Scott [EMAIL PROTECTED] wrote:

 I'm a bit late on this thread, but if you're reading in site settings on
 every page request it would make more sense to put them into the
 application scope instead of the session scope.  If you have multiple
 sites running on the same application you could use a structure to
 store the data that is read in on the first request (or on application
 start if using application.cfc) keyed based on the site id.  Once read
 once you won't have to process that data on every request and it will be
 stored in memory once instead of a new copy for each visitor.


 -Justin Scott | GravityFree
 Client Care Special Forces Unit

 1960 Stickney Point Road, Suite 210
 Sarasota | FL | 34231 | 800.207.4431
 941.927.7674 x115 | f 941.923.5429
 www.GravityFree.com


  -Original Message-
  From: George Abraham [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 13, 2007 2:18 PM
  To: CF-Talk
  Subject: Re: reading params from a file v/s getting them from a file
 
  Hmm, maybe I can learn some stuff here about session
  variables. Well, the
  parameters (and their values) themselves are sizeable in
  nature. Sort of
  like defaultTextForMessage='some text 150 characters long'
  and so on. Is
  storing them in the session advisable?
 
  Thanks,
  George
 
 
  On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
  
   On Thursday 12 Apr 2007, George Abraham wrote:
Yes it is read at every request. For example, the
  navigational menu for
every site is different, so the params XML file will have
  to be read
   every
request to see what the menu items are. The only thing I
  store in a
   session
variables is an ID identifying the site.
  
   Right. Why can't you store the parsed parameters in the
  session too ?
  
  
   --
   Tom Chiverton
  

 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275286
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reading params from a file v/s getting them from a file

2007-04-13 Thread George Abraham
Hmm, maybe I can learn some stuff here about session variables. Well, the
parameters (and their values) themselves are sizeable in nature. Sort of
like defaultTextForMessage='some text 150 characters long' and so on. Is
storing them in the session advisable?

Thanks,
George


On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Thursday 12 Apr 2007, George Abraham wrote:
  Yes it is read at every request. For example, the navigational menu for
  every site is different, so the params XML file will have to be read
 every
  request to see what the menu items are. The only thing I store in a
 session
  variables is an ID identifying the site.

 Right. Why can't you store the parsed parameters in the session too ?


 --
 Tom Chiverton



~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: reading params from a file v/s getting them from a file

2007-04-13 Thread Justin Scott
I'm a bit late on this thread, but if you're reading in site settings on
every page request it would make more sense to put them into the
application scope instead of the session scope.  If you have multiple
sites running on the same application you could use a structure to
store the data that is read in on the first request (or on application
start if using application.cfc) keyed based on the site id.  Once read
once you won't have to process that data on every request and it will be
stored in memory once instead of a new copy for each visitor.


-Justin Scott | GravityFree
 Client Care Special Forces Unit

1960 Stickney Point Road, Suite 210
Sarasota | FL | 34231 | 800.207.4431
941.927.7674 x115 | f 941.923.5429
www.GravityFree.com


 -Original Message-
 From: George Abraham [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 13, 2007 2:18 PM
 To: CF-Talk
 Subject: Re: reading params from a file v/s getting them from a file
 
 Hmm, maybe I can learn some stuff here about session 
 variables. Well, the
 parameters (and their values) themselves are sizeable in 
 nature. Sort of
 like defaultTextForMessage='some text 150 characters long' 
 and so on. Is
 storing them in the session advisable?
 
 Thanks,
 George
 
 
 On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:
 
  On Thursday 12 Apr 2007, George Abraham wrote:
   Yes it is read at every request. For example, the 
 navigational menu for
   every site is different, so the params XML file will have 
 to be read
  every
   request to see what the menu items are. The only thing I 
 store in a
  session
   variables is an ID identifying the site.
 
  Right. Why can't you store the parsed parameters in the 
 session too ?
 
 
  --
  Tom Chiverton
 

~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade  see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275177
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: reading params from a file v/s getting them from a file

2007-04-12 Thread Tom Chiverton
On Wednesday 11 Apr 2007, George Abraham wrote:
 Well, this is an application that will be serving multiple websites (with
 different vHost names.) When a session is initiated with the application,
 it determines which site it is. Then there are a host of params that are
 set according to the site. Since these params don't change much, I decided
 I would cache them periodically in a site-specific XML file and then read
 that XML file, instead of going to the database to get these params. Yes,

Err, right.
So you're not reading it at every request (like your first post said) ?

-- 
Tom Chiverton
Helping to adaptively deliver holistic e-business
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275058
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: reading params from a file v/s getting them from a file

2007-04-12 Thread George Abraham
Yes it is read at every request. For example, the navigational menu for
every site is different, so the params XML file will have to be read every
request to see what the menu items are. The only thing I store in a session
variables is an ID identifying the site.

George

On 4/12/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 11 Apr 2007, George Abraham wrote:
  Well, this is an application that will be serving multiple websites
 (with
  different vHost names.) When a session is initiated with the
 application,
  it determines which site it is. Then there are a host of params that are
  set according to the site. Since these params don't change much, I
 decided
  I would cache them periodically in a site-specific XML file and then
 read
  that XML file, instead of going to the database to get these params.
 Yes,

 Err, right.
 So you're not reading it at every request (like your first post said) ?

 --
 Tom Chiverton



~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reading params from a file v/s getting them from a file

2007-04-12 Thread Tom Chiverton
On Thursday 12 Apr 2007, George Abraham wrote:
 Yes it is read at every request. For example, the navigational menu for
 every site is different, so the params XML file will have to be read every
 request to see what the menu items are. The only thing I store in a session
 variables is an ID identifying the site.

Right. Why can't you store the parsed parameters in the session too ?


-- 
Tom Chiverton
Helping to seamlessly grow cross-media infomediaries
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275068
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reading params from a file v/s getting them from a file

2007-04-11 Thread Tom Chiverton
On Friday 06 Apr 2007, George Abraham wrote:
 I cannot however set these params in say an application.cfm or any such
 initializing code.

OOI, why not ?

-- 
Tom Chiverton
Helping to simultaneously brand web-enabled initiatives
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274990
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: reading params from a file v/s getting them from a file

2007-04-11 Thread George Abraham
Well, this is an application that will be serving multiple websites (with
different vHost names.) When a session is initiated with the application, it
determines which site it is. Then there are a host of params that are set
according to the site. Since these params don't change much, I decided I
would cache them periodically in a site-specific XML file and then read that
XML file, instead of going to the database to get these params. Yes, the
inclusion of the XML file is done in the request initializing code. Does all
that make sense? Or am I going about this the wrong way?

Thanks,
George

On 4/11/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Friday 06 Apr 2007, George Abraham wrote:
  I cannot however set these params in say an application.cfm or any such
  initializing code.

 OOI, why not ?




~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4