简体   繁体   English

如何检测数据库中的变化?

[英]How to detect changes in database?

This maybe the problem of workflow in my organization, but I would like to explore whether this can be fixed/alleviated technically. 这可能是我的组织中的工作流问题,但我想探讨这是否可以在技术上修复/缓解。

I work in a healthcare organization that data about a certain illness is constantly retrieved for compilation of reports. 我在医疗机构工作,不断检索有关某种疾病的数据,以便汇编报告。 I'm somewhere in a middleman role, the IT team export data for us, and we validate the data. 我处于中间人角色,IT团队为我们导出数据,我们验证数据。 Since we don't have access right to the raw data, so we can only voice out the issue of the data to IT team, they work on the amendment according, if they REALLY wiLL, the amendment maybe re-retrieval of data, or maybe asking the nurses to enter the missing data again. 由于我们没有对原始数据的访问权限,因此我们只能向IT团队发出数据问题,他们根据修改工作,如果他们真的没有,修改可能会重新检索数据,或者也许要求护士再次输入缺失的数据。

I communicate with IT team primarily using email, since we don't share any data server, so data is usually packed in excel and sent by email. 我主要使用电子邮件与IT团队沟通,因为我们不共享任何数据服务器,因此数据通常打包在excel中并通过电子邮件发送。 Problem arises when there are several rounds of data checking and amendment, when the new data arrived, I can only believe that the amendment is done and I need to check everything again, and when there are 2-3 versions of data coming to and fro, things can be very messy. 当有几轮数据检查和修改时出现问题,当新数据到达时,我只能相信修改已完成,我需要再次检查所有内容,并且当有2-3个版本的数据来回时,事情可能非常混乱。 (did the 4th amendment also incorporate 1st, 2nd, 3rd amendments also? Or other than my request, new amendment is included also?) (第4修正案是否也包括第1,第2,第3修正案?或者除了我的要求之外,还包括新的修正案?)

I start using GIT to detect and store changes of my scripts, I wonder if I can use git to rapidly check the database, I can export the ~50000 rows, ~100 columns table into csv, is it feasible? 我开始使用GIT来检测和存储我的脚本的变化,我想知道我是否可以使用git来快速检查数据库,我可以将~50000行,~100列表导出到csv中,是否可行?

What I want to do is to rapidly check the data (ie I said row XYZ need to change column ABC, did IT team really fix it? Did IT team fix other things that I don't knwo?) Any suggestions? 我想要做的是快速检查数据(即我说行XYZ需要更改列ABC,IT团队是否真的修复了它?IT团队是否修复了其他我不知道的事情?)有什么建议吗? Thanks! 谢谢!

You seem to be attacking the problem in the wrong place. 你似乎在错误的地方攻击这个问题。

The database itself ought to be throwing bad data right back at the person who entered it. 数据库本身应该将错误的数据放回到输入它的人身上。 Keeping bad data out of the database is a lot easier and cheaper than fixing it after it gets in. (Although I guess that might put you out of a job.) 将坏数据保存在数据库之后比在它进入后修复它要容易得多,而且便宜。(虽然我猜这可能会让你失业。)

Having said that, you can use any version control system to follow changes, although deleted rows might cause you some problems. 话虽如此,您可以使用任何版本控制系统来跟踪更改,但删除的行可能会导致一些问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM