If you're using Class::DBI, you might want to try calling ->clear_object_index() to see if that makes things better. http://search.cpan.org/~tmtm/Class-DBI/lib/Class/DBI.pm#UNIQUENESS_OF_OBJECTS_IN_MEMORY