Thanks for the suggestions.  I'll look into unbindModel.

I wanted to give you an update:
APC - wow I went from a maximum stable run of 40 users on 512meg test
server to 125 users over a 300% increase.

PersistModel = true
My first attempt was to  add it to my app controller.  I got tons of
errors as I made extensive use of $Uses.

I have seen where gwoo has stated that $Uses is of the devil.  Not sure
I understand why.
I was able to switch to using Model1->AssociatedModel2->find syntax and
eliminate $Uses on about half my controllers.

There are other cases where there is not a direct relationship - ie an
action can be performed on either a group or a user (two different
tables/models) or I'm using a fileHandler model which has no table and
(correct me if I'm wrong) can't be used with associations.

I'm going to see if there are any additional associations I can add to
free my controller from $uses, I was intentionally keeping the
associations to a minimum to avoid querying to much.  Looks like the
right way is to add the associations and use unbindModel.

I did add a ticket #1317 on uses and persistModel although this may be
"a feature not a bug"  https://trac.cakephp.org/ticket/1317
Still I need a good workaround for my fileHandler model.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to