Menu

#151 Orphaned records and failure to delete related records

open
data (41)
6
2010-04-27
2010-03-02
No

The database contains many orphaned objects. For example, under the Taxa tab, search on NCBI taxid 114498, then click either the Trees or Matrices tabs. This results in records even though none of them belong to an existing study. The problem is in part because trees and matrices don't actually get deleted properly: create a submission, upload trees or matrices, then delete the trees or matrices -- the only thing that is deleted is the linking record in the sub_matrix table. None of the column records, row records, or element records (etc) seem to get deleted. Youjun explained that the design of the matrix object does not allow the code to access the matrix rows (etc) for easy deletion. One possible solution is to include cascade-delete constraints on the tables so that deleting a matrix record automatically delete all related records without leaving behind any orphans. At any rate, it behooves us to prevent the accumulation of orphans and to write data cleansers to get rid of the existing ones.

Discussion

  • Hilmar Lapp

    Hilmar Lapp - 2010-04-27

    Needs to be verified first that the bug still replicates.

     
  • Hilmar Lapp

    Hilmar Lapp - 2010-04-27
    • priority: 8 --> 6
     
  • Hilmar Lapp

    Hilmar Lapp - 2010-04-27
    • assigned_to: mjdominus --> sfrgpiel
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.