code: def bulk_insert(self, inserts, intervals=0, **kwargs):
      '''
      Perform a bulk insert. The format of the inserts must be:
  
      {
        timestamp : {
          name: [ values ],
          ...
        },
        ...
      }
  
      If the timestamp should be auto-generated, then "timestamp" should be None.
  
      Backends can implement this in any number of ways, the default being to
      perform a single insert for each value, with no specialized locking,
      transactions or batching.
      '''
      if None in inserts:
        inserts[ time.time() ] = inserts.pop(None)
      if self._write_func:
        for timestamp,names in inserts.iteritems():
          for name,values in names.iteritems():
            names[name] = [ self._write_func(v) for v in values ]
      self._batch_insert(inserts, intervals, **kwargsf bulk_insert(self, inserts, intervals=0, **kwargs):
      '''
      Perform a bulk insert. The format of the inserts must be:
  
      {
        timestamp : {
          name: [ values ],
          ...
        },
        ...
      }
  
      If the timestamp should be auto-generated, then "timestamp" should be None.
  
      Backends can implement this in any number of ways, the default being to
      perform a single insert for each value, with no specialized locking,
      transactions or batching.
      '''
      if None in inserts:
        inserts[ time.time() ] = inserts.pop(None)
      if self._write_func:
        for timestamp,names in inserts.iteritems():
          for name,values in names.iteritems():
            names[name] = [ self._write_func(v) for v in values ]
      self._batch_insert(inserts, intervals, **kwargs)
docs: Perform a bulk insert. The format of the inserts must be:
  
      {
        timestamp : {
          name: [ values ],
          ...
        },
        ...
      }
  
      If the timestamp should be auto-generated, then "timestamp" should be None.
  
      Backends can implement this in any number of ways, the default being to
      perform a single insert for each value, with no specialized locking,
      transactions or batching.