On Wed, Jan 28, 2009 at 12:26 AM, Ian Eslick <span dir="ltr"><<a href="mailto:eslick@media.mit.edu">eslick@media.mit.edu</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
><br>
Hi John,<br>
<br>
Your mileage may vary, but I'm really not concerned about users<br>
causing significant performance degradation by doing lots of null<br>
edits. If that is happening, it's probably a user interface design<br>
problem. The trivial solution is to write a jscript function that<br>
sets a hidden input value if the contents of any of the inputs are<br>
changed. You can inhibit the POST entirely if that's the case, or<br>
allow the server to skip processing it. This should cut out a huge %<br>
of your overall null edits (if you don't have some weird community<br>
with a high percentage of no-javascript users) and it's only a few<br>
lines of code.</blockquote><div><br>Agree. Maybe I can just compare the values of the POST variables against the slot values and if anything changed, then proceed with the update/transaction. I'm not too much of a fan on relying on javascript for that type of validation since people can "hack" that easily (don't ask... it will be a public application so you never know what type of users we'll get)<br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">We should all be so lucky as to blow out a single server! If you have<br>
that much traffic, you can usually afford some reworking to scale if<br>
your application is amenable to it. Often you can get pretty far just<br>
by doing some optimizations, offloading static file to a second<br>
server, smart caching, some restructuring and performance<br>
optimizations, transaction tuning, etc. There is almost always room<br>
for significant optimization in a new system.</blockquote><div><br>Correct. And that's why premature optimization is almost always more of a waste of time. I was only being a dreamer and imagining that our application will revolutionize the Internet and will blow the sucks off Facebook :D<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Check out the elephant-devel mailing list, associations are described<br>
several times there. I also provided an example in a recent e-mail.<br>
<br>
The API is straightforward so between the new metaclass slot initargs<br>
(src/elephant/metaclass.lisp) and the association interface (src/<br>
elephant/associations.lisp) you should be able to work with them.<br>
<br>
Regards,<br>
<font color="#888888">Ian</font></blockquote><div><br>Thank you again. Will do.<br><br>Best regards,<br>JD<br></div></div><br>