Quick strategic support

Recently, we needed to identify some scripts that:

  • were executed during the execution of some use cases, and
  • were executing SQL queries, and
  • were used heavily internally.

In particular, we needed to know the characteristics of these scripts. We already had the data that linked static information about the code structure with dynamic information recovered from log files, and we already had a Moose-based infrastructure to analyze it. Because of this, it took less than 2 minutes to provide the answer. The query looked like this:

model allScripts select: [:each | 
  each activations notEmpty and: [
    each invokesSQLStatements and: [
      each incomingInvocations size > 10 ]]]]

This information was then used for a strategic decision. Strategic decisions are broad. But, they do not have to be vague, too.

Posted by Tudor Girba at 21 January 2012, 10:49 am with tags story, assessment, moose link
|