Archive for May, 2009

Multiple row operations in MySQL / PHP

Thursday, May 14th, 2009

Multiple row operations are in common use in a normalized application databases as one database entity is often linked to multiple sub-entities (for example a user and his tags). By row operations I'm referring to write queries, namely UPDATE and INSERT queries (DELETE is less interesting so I'll leave it out for now).

Too often I've seen such queries ran in long loops one at a time, which is very bad for performance (as I will show here) and sometimes equally bad for integrity (if the process is interrupted). So what are the alternatives?
(more...)

Finding your web business model

Wednesday, May 6th, 2009

The web as a commercial venue has changed and evolved much in the relatively short time since its inception. As the medium and technology evolved, more and more "real-world" business models became viable for web products.

Despite this, the application of those business models in the web arena is still very much experimental, and it's often hard for web businesses to find and implement a model that works well for them.
(more...)