'SQLite has a compile-time default (SQLITE_LIMIT_VARIABLE_NUMBER) of
999 variables per query.
If there\'s only a single field to insert, the limit is 500
(SQLITE_MAX_COMPOUND_SELECT).'

def bulk_batch_size(self, fields, objs):

    if (len(fields) == 1):
        return 500
    elif (len(fields) > 1):
        return (self.connection.features.max_query_params // len(fields))
    else:
        return len(objs)
