<br><br><div class="gmail_quote">On Sat, Jun 5, 2010 at 8:11 AM, Tamer Higazi <span dir="ltr"><<a href="mailto:th982a@googlemail.com">th982a@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi people!<br>
sorry to ask you this last question.<br>
<br></blockquote><div><br></div><div>We hope it won't be the last. :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
After working out several books in python I can say, that I like this<br>
language very much (perhaps I will deal so or so with the core api more<br>
or less).<br>
<br></blockquote><div><br></div><div>Python is a fine tool..</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Django seems to be simple, but the DB interface is very limitized and I<br>
need ODBC connections, as well I have to define everything myself<br>
specially according abject creation and re-usability. When I say<br>
reusability, I am thinking in the level of design patterns like:<br>
<br>
Singleton<br>
Factory<br>
Prototype<br>
Builder<br>
<br>
...<br></blockquote><div><br></div><div>BlueBream / ZTK is influenced heavily by Design Patterns. I often recommend the GoF book to folks not familiar with them as helpful in understanding the approach we take.</div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
There comes my question:<br>
<br>
Does bluebream (i will never say zope again, I promise you, please don't<br>
hit me!) take care about objects which had been created at runtime<br>
through a user request before?!<br>
<br></blockquote><div><br></div><div>No violence in BlueBream, we promise. ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Scenario web app built on bluebream:<br>
<br>
1 a). User open site<br>
1 b). bluebream creates object<br>
<br>
2 a) 2nd user open site<br>
2 b) bluebream determines that the object was previously created before<br>
and uses the object allocated in memory<br>
<br>
<br></blockquote><div><br></div><div>Short answer: Yes.</div><div><br></div><div>Long answer: as the site grows to lots of objects, an in-memory cache of instantiated objects will have the most used. In zope.conf you can set the cache-size in both number of objects, and size in MB.</div>
<div><br></div><div>Best of luck!</div><div><br></div><div>Justin</div></div>