On 23 Aug 2011, at 21:29, Benny Malengier wrote:
you can delete the table and recreate it with the function as used in the tool with that name. That tool is a good way to test your code.
Could someone please explain the difference between Tools -> Family Tree Repair -> Rebuild Reference Maps and Rebuild Secondary Indices.
I understand that the first calls write.py reindex_reference_map and the second calls rebuild_secondary. I can see that reindex_reference_map rebuilds the reference maps by going through each primary object, and calling update_reference_map, but what exactly does rebuild_secondary do?
Also, in write.py I have had to call self.__connect_secondary() and self.__open_undodb() before doing the gramps_upgrade_16. Would I have to do that if I used the reindex_reference_map function?