database - Copying a complex data structure -
in our postgres database, have structure of
class 1-* assignments 1-* questions 1-* alternatives
previously assignments reused multiple classes, meaning several classes point same assignment id , fine world.
now, need make change in system requires assignments unique each class. means need replicate assignments several copies can make them unique each class.
so, generate unique assignments each class , each of them have own questions , alternatives.
what's efficient way replicate without having build huge recursive code?
Comments
Post a Comment