@transaction.atomic()<EOL>def _dequeue_into_store(transfersession):
with connection.cursor() as cursor:<EOL><INDENT>DBBackend._dequeuing_delete_rmcb_records(cursor, transfersession.id)<EOL>DBBackend._dequeuing_delete_buffered_records(cursor, transfersession.id)<EOL>current_id = InstanceIDModel.get_current_instance_and_increment_counter()<EOL>DBBackend._dequeuing_merge_conflict_buffer(cursor, current_id, transfersession.id)<EOL>DBBackend._dequeuing_merge_conflict_rmcb(cursor, transfersession.id)<EOL>DBBackend._dequeuing_update_rmcs_last_saved_by(cursor, current_id, transfersession.id)<EOL>DBBackend._dequeuing_delete_mc_rmcb(cursor, transfersession.id)<EOL>DBBackend._dequeuing_delete_mc_buffer(cursor, transfersession.id)<EOL>DBBackend._dequeuing_insert_remaining_buffer(cursor, transfersession.id)<EOL>DBBackend._dequeuing_insert_remaining_rmcb(cursor, transfersession.id)<EOL>DBBackend._dequeuing_delete_remaining_rmcb(cursor, transfersession.id)<EOL>DBBackend._dequeuing_delete_remaining_buffer(cursor, transfersession.id)<EOL><DEDENT>if getattr(settings, '<STR_LIT>', True):<EOL><INDENT>_deserialize_from_store(transfersession.sync_session.profile)<EOL><DEDENT>
Takes data from the buffers and merges into the store and record max counters.