Thanks a lot Wim. About dbo, I need an example about migration scripts. Suppose that I have an application running using the class below
class User { public: std::string name; template<class Action> void persist(Action& a) { dbo::field(a, name, "name"); } }; Then in new version, I've added a new attribute called age class User { public: std::string name; int age; template<class Action> void persist(Action& a) { dbo::field(a, name, "name"); dbo::field(a, age, "age"); } }; There is a method called createTables(). Is there (or will be) a method to update existing tables (Ex. updateTables)? If not, I need an example code how to add age to an existing database (need SQL queries I guess) About tests, I mean a black box user testing, a browser automation. Any ideas? Regards, Burak<div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/10 Wim Dumon <span dir="ltr"><<a href="mailto:w...@emweb.be" target="_blank">w...@emweb.be</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>hello,<br><br></div>1. Yes. Load depends on your application. Simple requests are handled within a milisecond, but it really depends on what the handling of those events takes. Same goes for memory consumption<br> <br></div>2. There are many strategies. You can avoid the impact of an application by a good support for URLs, so that a full reload of the session (which happens when you'd restart a server) would put you back in the application where you were. This would be mostly similar to what you get with other frameworks. You can also use a reverse proxy that forwards sessions depending on some prefix in the session ID, and deploy the new applciation with a different session prefix, and configure your reverse proxy that new sessions go to one instance while the old sessions are still served by the old instance (e.g. by running them on separate ports). When there are no sessions left in the old instance, you can kill it.<br> <br></div>3. afaik Wt::Dbo has no features for automatic database migration. You will have to run your migration scripts manually.<br><br></div>4. There's Wt's WTestEnvironment, or what kind of tests are you looking for?<br> <br></div>BR,<br>Wim.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/9 Burak Kulakli <span dir="ltr"><<a href="mailto:kula...@yahoo.co.uk" target="_blank">kula...@yahoo.co.uk</a>></span><br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div><div>Hello,<br><br></div>I've a couple of questions.<br><br></div>1. Is Wt convenient for internet Saas applications? On what load (Ex. how many active users, concurrent requests) it should keep working reasonably? Any known limits?<br> <br></div>2. When a new version of my application comes, how can it be deployed without interrupting the active users (replace myapp.wt with its new version). I am planning to use built in http(s) server. Is it possible to update on background?<br> <br></div>3. If I add a new attribute to a class whose objects are stored in database using Wt::Dbo, Is it possible to apply a patch to database. I mean, is there a class like a database-patcher which checks my new models and apply differences to database.<br> <br></div><div>4. Does anyone use an automatic testing suite effectively. Any recommendations?<br><br></div>Thanks a lot,<br></div>Burak<br></div> <br></div></div>------------------------------<wbr>------------------------------<wbr>------------------<br> Learn Graph Databases - Download FREE O'Reilly Book<br> "Graph Databases" is the definitive new guide to graph databases and<br> their applications. This 200-page book is written by three acclaimed<br> leaders in the field. The early access version is available now.<br> Download your free book today! <a href="http://p.sf.net/sfu/neotech_d2d_may" target="_blank">http://p.sf.net/sfu/neotech_<wbr>d2d_may</a><br>______________________________<wbr>_________________<br> witty-interest mailing list<br> <a href="mailto:witty-interest@lists.sourceforge.net" target="_blank">witty-interest@lists.<wbr>sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/witty-interest" target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/witty-interest</a><br> <br></blockquote></div><br></div> <br>------------------------------<wbr>------------------------------<wbr>------------------<br> Learn Graph Databases - Download FREE O'Reilly Book<br> "Graph Databases" is the definitive new guide to graph databases and<br> their applications. This 200-page book is written by three acclaimed<br> leaders in the field. The early access version is available now.<br> Download your free book today! <a href="http://p.sf.net/sfu/neotech_d2d_may" target="_blank">http://p.sf.net/sfu/neotech_<wbr>d2d_may</a><br>______________________________<wbr>_________________<br> witty-interest mailing list<br> <a href="mailto:witty-interest@lists.sourceforge.net">witty-interest@lists.<wbr>sourceforge.net</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/witty-interest" target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/witty-interest</a><br> <br></blockquote></div><br></div> ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ witty-interest mailing list witty-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/witty-interest