How to fix “too much contention” on onCreate triggered by batch writes
问题 I have school object with classrooms and students. Students are each family's sub-collection. When creating a school, I write several hundred families in several write batches. In creating each student, I want to do a few things: update a string in the student's family containing student first names students contain a classroom id, and I wish to update the classroom with some data from the student the school keeps separate list of students for easy lookup, and I want to add the students there