On Wed, Jan 28, 2009 at 12:26 AM, Ian Eslick <esl...@media.mit.edu> wrote:

> >
> Hi John,
>
> Your mileage may vary, but I'm really not concerned about users
> causing significant performance degradation by doing lots of null
> edits.  If that is happening, it's probably a user interface design
> problem.  The trivial solution is to write a jscript function that
> sets a hidden input value if the contents of any of the inputs are
> changed.  You can inhibit the POST entirely if that's the case, or
> allow the server to skip processing it.  This should cut out a huge %
> of your overall null edits (if you don't have some weird community
> with a high percentage of no-javascript users) and it's only a few
> lines of code.


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)

We should all be so lucky as to blow out a single server!  If you have
> that much traffic, you can usually afford some reworking to scale if
> your application is amenable to it.  Often you can get pretty far just
> by doing some optimizations, offloading static file to a second
> server, smart caching, some restructuring and performance
> optimizations, transaction tuning, etc.  There is almost always room
> for significant optimization in a new system.


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


> Check out the elephant-devel mailing list, associations are described
> several times there.  I also provided an example in a recent e-mail.
>
> The API is straightforward so between the new metaclass slot initargs
> (src/elephant/metaclass.lisp) and the association interface (src/
> elephant/associations.lisp) you should be able to work with them.
>
> Regards,
> Ian


Thank  you again. Will do.

Best regards,
JD
_______________________________________________
elephant-devel site list
elephant-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/elephant-devel

Reply via email to