@DeutscheGabanna and I just figured this out recently, see this forum post. I think you only want the top half (stop after the end of the first dv.table line).
If you have a very large vault, you might want to run it on a subset of dv.pages first to make sure it won’t take too long!