title: How to quickly see if all items in list of Primary Keys exist prior to bulk_create call?
body: <p>I'm attempting to do a django <code>bulk_create</code> for a list of objects. However, every so often one of the objects in the <code>bulk_create</code> already exists (it's primary key has already been allocated) so an exception is raised and no objects get created. To fix this I added a loop over each of the new objects to test if they exist prior to the <code>bulk_create</code> call but this feels very inefficient. Is there way to accomplish the same result in fewer queries to the database?</p>