I have a Drupal module which performs a soap request on node save via hook_nodapi. This isn't a big performance loss on individual saves, but if thousands of nodes are being saved in batch mode this is a big bottleneck.
I would like to perform a different action when the hook is invoked from batch mode but can't see an easy way to tell this.
Does anyone have any ideas?