On Apr 24, 2:17 pm, ZAky <[email protected]> wrote: > You can easily say it's actually two application there for two > databases its fine.
It really is one application. In fact, it uses basically the same code for the two databases. The staging area simply has more features, and then when it gets published, the changes are reflected in the public database. > About the undo thing. > You can't use "auto increment" with that approach, I think. The undo number is stored in the session and is incremented and decrimented as the user clicks undo and redo. each undo is a file (mysqldump) and they are all wiped when a new session is started. > Also the IO is much more then it should be. > But, I guess you don't have more 10 users in the staging application > and there for no performance issues. > > It looks like a newbie work around but if its working just the way > you like and it doesn't drag you to do more work around, this is what > work around usually do, then way change it. Well, the truth is, there is only one user doing the scheduling, and that is why the undo file thing works. if there were two users changing things at once, there would be issues anyway (like two people editing the same file on a server). > > BUT, a make over is a great time to try to think about the whole > challenge from a new perspective. > Until you will think your database is not "fairly complex" don't rest. Yes! Redesigning it is where I'm at now. How do people code multiple undos? Seems like you would have to determine what parts of the database you will be changing (beforeSave) and have a model that stores some kind of info about how to restore the database to that state... > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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 > athttp://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en
