But in this case you have 2 database. One is 'master' and another one is
'default'. So when you are saving data to 'master' and updating data by
'default' or deleting data by 'default'. Then how this 2 database will be
synchronized. Data can be lost or any damage? Can you tell me the complete
f
Summary: Analyse hard and try other solutions for the biggest problems.
I would suggest you first find the bottlenecks of your app. Is it the code,
the network, the database, other resource files? If the code, which
functions? A PHP profiler + network tab in Firebug/DeveloperTools should
get yo
Ask MySpace what it's like to get big on really bad code. Oh that's right
everyone moved to Facebook etc
When success comes, it can come very fast, it's good practice to build
scalable code from day-0.
On Thursday, 3 February 2011 18:04:00 UTC+11, Jeremy Burns wrote:
>
> Always makes me chu
AFAIK it doesn't work on Cake => 1.2.x
>From comment on that post :
The approach using beforeSave() no longer works for cake 1.2. Looking at
CAKE/libs/model/model.php:save() the call to beforeSave() happens long after
variable $db has been set using the old value of $this->useDbConfig .
On Fri,
Cleaner solution for master/slave using callbacks (or Behavior)
function beforeSave() {
$this->useDbConfig = 'master';
return true;
}
function afterSave() {
$this->useDbConfig = 'default';
return true;
}
function beforeDelete() {
$this->useDbConfig = 'master';
return tru
Well out of the box Cake does not but you can do it using either
AppModel or better create a behavior and use all the beforeFunction to
switch DB configs
Behavior is better IMO
Cheers
Tarique
On Thu, Feb 10, 2011 at 10:35 PM, Okto Silaban wrote:
> That's what I'm trying to do.
> I've setup 1
Hi Okto, have you try using the view cache helper = its really great,
or perhaps you could use the plain html cache plugin, that really will
speed up, of course it have some cons...
http://bakery.cakephp.org/articles/mattc/2009/03/20/html-cache-helper
http://book.cakephp.org/view/348/Clearing-the
Thanks.. :D
I'll try this.
On Fri, Feb 11, 2011 at 12:14 AM, ibejohn818 wrote:
> This what I am using.
> ===
> class AppModel extends Model {
>
>
>
>public function save($data = null, $validate = true, $fieldList =
> array()) {
>
>$this->useDbConfig = 'master';
>
>
That's what I'm trying to do.
I've setup 1 master and 2 slaves. But CakePHP doesn't support read & write
query separation.
So, do you have any information how can I split the read & write query?
*other than rewrite all my models
thanks.
On Wed, Feb 9, 2011 at 10:03 AM, Dr. Tarique Sani wrote:
>
This what I am using.
===
class AppModel extends Model {
public function save($data = null, $validate = true, $fieldList =
array()) {
$this->useDbConfig = 'master';
$success = parent::save($data,$validate,$fieldList);
$this->useDbConfig
On Tue, Feb 8, 2011 at 11:57 PM, Okto Silaban wrote:
> trying to make a : master - slave - slave database. Still can't find a
> convenient way to do this. Last that I did is using master-master DB (since
> you don't need to change your apps code), but then comes issue with the
Have you split the
On Tue, Feb 8, 2011 at 11:25 PM, mark_story wrote:
>
> On Feb 3, 5:31 am, "Dr. Tarique Sani" wrote:
>
>> Yes I do stand by my statement that the current translate behavior is
>> not ready for massively translated sites but re-writing that is
>> trivial (hmmm... time to clean up and release that
I don't have 100k users for now. But I have about 4mio pageviews/month.
The site is still running, but getting slower. The hardest part is when I
trying to make a : master - slave - slave database. Still can't find a
convenient way to do this. Last that I did is using master-master DB (since
you do
On Feb 3, 5:31 am, "Dr. Tarique Sani" wrote:
> Yes I do stand by my statement that the current translate behavior is
> not ready for massively translated sites but re-writing that is
> trivial (hmmm... time to clean up and release that code ;-) )
I like 'trivial' changes that greatly improve pe
On Thu, Feb 3, 2011 at 3:52 PM, Shinya Koizumi wrote:
> If the site is going to get more ajax driven sites like facebook i wouldn't
> recommend to use since
> the framework is not ready and it will take more time to figure out. Just my
> opinion.
>
And my counter opinion is that it is ready! but
If the site is going to get more ajax driven sites like facebook i wouldn't
recommend to use since
the framework is not ready and it will take more time to figure out. Just my
opinion.
On Wed, Feb 2, 2011 at 11:04 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> Always
@ keymaster
Thanks, I looked it earlier
@ Jeremy Burns
Man, I must be inform, we have over 100,000 potential clients, each of
them
has an average of four offers to publish. Each submission will be
translated into other European languages.
We are an interesting country, which annually attracts m
Always makes me chuckle when people are asking if their app can handle Facebook
style traffic. Don't waste time solving problems you don't yet have.
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 3 Feb 2011, at 07:01, keymaster wrote:
> You'll be lucky if y
You'll be lucky if you reach a small fraction of the traffic the sites
in the following thread get:
http://groups.google.com/group/cake-php/browse_thread/thread/a87ac46d4f590566#
In particular, watch this wonderful presentation on CakePHP TV,
entitled: "CakePHP at massive scale on a budget", by A
Thank you for the link to google results. No, I'll not read all of
them just to realize where you think you find something to be scared
of. I'm not scared, and I've done large cake apps with many concurrent
users. No worries. If Mozilla Foundation didn't switched to another
programming language, th
For speeding up things,you can use phpspeedy in cakephp.
On Wed, Feb 2, 2011 at 7:21 PM, Salines wrote:
> Link is in the first post.
>
> I am not a beginner, the first web page I made 10 years ago, but like
> I said I have no experience with high traffic sites.
>
>
> --
> Our newest site for the
Link is in the first post.
I am not a beginner, the first web page I made 10 years ago, but like
I said I have no experience with high traffic sites.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp
I don't have experience with high traffic applications, but I've used
CakePHP and it has alot of cache options you can use. You just have to know
how to use it.
2011/2/2 100rk
> > In several places I read that CakePHP is not suitable for these
> > purposes.
>
> Links, please. Do not expect speed
> In several places I read that CakePHP is not suitable for these
> purposes.
Links, please. Do not expect speed of light in first working attempts/
apps of cake newbies.
RAD allows you to have your app done quickly - "make it work" is 1st
step. Then "make it work better" - developer with good kn
Hi,
In a small country like Croatia has 100,000 users a very good result.
Each of these users will be offering some of the services primarily
for European customers, and later for the rest of the world.
In the past 2 years I have read many articles related to CakePHP. I
know what I do to get the
sorry for this off topic post ( i am newbie so be mercy :) ). How do we test
the performance of the project which is already done ? like if 100 users
use the system at the same time, how to evaluate which level of speed is
fast and which is low? how do we know about the real benchmark of severa
Hi Salines,
be sure to set up you application so to get the full benefit from caching. Use
fat models and cache elements where possible.
http://gluei.com/blog/view/cakephp-best-practices-fat-models-and-skinny-
controllers
http://book.cakephp.org/view/1083/Caching-Elements
Anja
Am Mittwoch, 2.
Yes, no doubt and remember anything that can use cache.
I made a portal for government services which currently has 40,000
users and it works very well.
I made an OAuth provider and it can distribute its authentication,
authorization, and REST services to different platforms.
Cake is perfect.
On
I will play the devil's advocate here
if I10n/i18n is your priority specifically if you store translated model
content, be ready to optimise your app and cache your views on a per
language basis because the default translate behaviour adds one LEFT JOIN
per model field to be translated to your que
1,0 users is very very small I think.
On Wed, Feb 2, 2011 at 6:09 AM, Louie Miranda wrote:
> I think, 100,000 users is small.
> --
> Louie Miranda
>
>
>
>
> On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters wrote:
>
>> CakePHP can do it. No other opinion needed.
>>
>> --
>> Larry E. Masters
I think, 100,000 users is small.
--
Louie Miranda
On Wed, Feb 2, 2011 at 8:26 AM, Larry E. Masters wrote:
> CakePHP can do it. No other opinion needed.
>
> --
> Larry E. Masters
>
>
> On Tue, Feb 1, 2011 at 5:45 PM, Salines wrote:
>
>> Hi,
>>
>> My next project requires the following:
>>
>> S
CakePHP can do it. No other opinion needed.
--
Larry E. Masters
On Tue, Feb 1, 2011 at 5:45 PM, Salines wrote:
> Hi,
>
> My next project requires the following:
>
> Social networking
> l10n / i18n
> 60 or more tables in the database
> many tables have multiple associations
> user has many ass
32 matches
Mail list logo