@classmethod
def apply_query_size(cls, queryset, options):
    """Apply query size.

        :param queryset:
        :param options:
        :return:
        """
    if 'size' in options['options']:
        queryset = queryset.extra(from_=options['options'].get('from', 0),
            size=options['options']['size'])
    return queryset
