临时数据保留
我有一个数据库,其中包含我们公司在全国各地的所有分支机构的信息。现在我想将一些新数据放入这个数据库中,但是这些数据在短时间内(比如4周)就会变得无关紧要。这些临时数据每年会需要几次,但每次数据的格式和性质都不同。
我该如何处理这样的情况?每次我需要存储临时数据并在数据变得无关紧要后删除表时,我是否应该继续创建新表,或者有一些常见的模式来处理这样的情况?
多谢
I have a Database containes information about all the branches of our company around the country. Now I want to put some new data to this database, but these data would become irrelevant in a short time (like 4 weeks). These temporary data will be needed few times a year, but each time the format and nature of data is different.
How should I handle situation like this? Should I keep creating new tables everytime I need to store the temporary data and delete the tables after the data become irrelevent or there is some common patterns to handle situation like this?
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于它们不是在会话中创建的意义上的临时表,并且之后也不需要,因此使用常规表并在不再需要它们时将其删除看起来是处理这种情况的好方法。
Since they are not temporary in the sense of created within a session and not needed afterwards, using regular tables and removing them once the need for them is gone looks like a good way to handle the situation.