﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29117	Excessive memory use when multiple objects retrieved using objects.get()	caseydm	nobody	"I recently discovered a bug in my application that is running on Django 1.8.18 with python 2.7.14. This code is used to retrieve names using a slug:

{{{
try:
    record = record_class.objects.get(**filter_params)

except record_class.MultipleObjectsReturned:
    # deal with multiple records
}}}

Most names are single objects, but occasionally a name like 'not provided' will come through and return 1,000 results or more. In that instance, record_class.objects.get(**filter_params) spikes in memory usage from 56mb to 344mb. On Heroku, running this query a few times quickly maxes out all available memory, and the app stays that way until the dynos are restarted."	Bug	closed	Database layer (models, ORM)	1.8	Normal	duplicate	obejcts.get		Unreviewed	0	0	0	0	0	0
