'Write to multiple time series names.
An example data blob is:
data = [
"points": [
12
"name": "cpu_load_short",
"columns": [
"value"
:param data: A list of dicts in InfluxDB 0.8.x data format.
:param time_precision: [Optional, default \'s\'] Either \'s\', \'m\', \'ms\'
or \'u\'.
:param batch_size: [Optional] Value to write the points in batches
instead of all at one time. Useful for when doing data dumps from
one database to another or when doing a massive write operation
:type batch_size: int'

def write_points(self, data, time_precision='s', *args, **kwargs):

    def list_chunks(l, n):
        'Yield    successive    n-sized    chunks    from    l.'
        for i in xrange(0, len(l), n):
            (yield l[i:(i + n)])
    batch_size = kwargs.get('batch_size')
    if (batch_size and (batch_size > 0)):
        for item in data:
            name = item.get('name')
            columns = item.get('columns')
            point_list = item.get('points', [])
            for batch in list_chunks(point_list, batch_size):
                item = [{'points': batch, 'name': name, 'columns': columns}]
                self._write_points(data=item, time_precision=time_precision)
        return True
    return self._write_points(data=data, time_precision=time_precision)
