Informative articles on various technologies ...

How to delay somewhat heavy operations to improve user experience

We had a need from a client where they wanted to check certain complex conditions from a relatively big decision matrix. Without going into specifics, they wanted to check a progressive set of rules for users and taking certain actions when all the conditions were met.

Checking one or two conditions is not a problem on a modern day web site, but because the rules are progressive and have to be all checked from the start every time, that involves a lot of processing, a lot of database queries and basically a lot of time.


Performance benchmarking of Drupal 5.12, Drupal 6.6, and Drupal 7.x: we are getting slower ...

Earlier this month, we published an article on benchmarking Drupal 5.x vs. 6.x: which one faster?

We wanted to take this analysis a step further and benchmark them both with Drupal 7.x as well.


So, we got a checkout of Drupal 7.x as of October 24th, when update.php starting working for that version. We also used Drupal 5.12, and Drupal 6.6 which are the current and previous stable versions.


How relying on connections to third party servers can be detrimental to performance

One client of ours was facing severe issues with their relatively new well equipped server: the server stopped responding to web requests, and was rebooted, only to stop responding again.

Upon investigation, we found out that pages were taking a lot of time to load.

This only happened when viewing a node in full page view, not when the
nodes were in lists (just as in views, node edit form ...etc.)

Devel was showing this:


Performance Logging and Monitoring: A module to log and monitor performance statistics for Drupal

We've released a new module for performance logging and monitoring of Drupal sites.

The module shows pages and how much memory they are using for each page load, as well as the milliseconds of page generation time for each as well.

The module is intended for developers as they are building and testing sites, as well as site administrators to measure the most resource hungry pages.


Free your content of PHP: Moving PHP code out of blocks, views and nodes

From the early days, Drupal had the ability to embed PHP code in its content. This provides flexibility and functionality, most importantly, nodes and blocks can contain dynamically fetched data from the database using custom queries and displayed them in other content.

This is an easy approach to get such data without writing a module. All you need to do is assign the PHP input format filter to the node or block and paste your PHP code in it, and voila, you have dynamic content.



Subscribe to RSS - Articles