def detailAllBooks(): objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True)) random.shuffle(objs) print 'Objs len is %d' % (len(objs),) print 'ok done with that' tasks.process_lots_of_items(objs)
def lazy(request): objs = Amazon_NR.objects.values_list( 'productcode', flat=True).filter(productcode=request.GET['product']) tasks.process_lots_of_items(objs) return HttpResponse(request.GET['product'] + " : " + str(objs))
def lazy(request): objs = Amazon.objects.values_list('productcode', flat=True).filter(productcode=request.GET['product']) tasks.process_lots_of_items(objs) return HttpResponse(request.GET['product'] + " : " + str(objs))
def detailAllBooks(): objs = list(AmazonTradeIn.objects.values_list('productcode', flat=True)) random.shuffle(objs) print 'Objs len is %d' % (len(objs), ) print 'ok done with that' tasks.process_lots_of_items(objs)
def detailAllBooks(): objs = AmazonMongoTradeIn.objects.values_list('id', flat=True) print 'Objs len is %d' % (len(objs),) print 'ok done with that' tasks.process_lots_of_items(objs)