使用 interbase 设计数据库表的最佳方法?
我即将开始以适当的方式重做公司数据库。 我们当前的数据库很混乱,几乎没有文档。 我想知道人们在设计 Interbase 数据库时建议使用什么? 是否有某种好的可视化模式设计器可以生成 SQL? 全部手工完成是不是更好?
基本上,人们在设计和记录数据库时通常采取哪些步骤? 如果重要的话,我打算使用 Hibernate 作为数据库的 ORM。 (Interbase 的具体提示也将不胜感激)。
谢谢!
I am about to start redoing a company database in a proper fashion. Our current database is a mess and has little to no documentation. I was wondering what people recommend to use when designing an Interbase database? Is there some sort of good visual schema designer that will generate the SQL? Is it better to do it all by hand?
Basically, what are the steps people usually take when designing and documenting a database? If it matters, I intend to use Hibernate as an ORM for the database. (Specific tips with Interbase would be appreciated as well).
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常,我使用文本编辑器。 有时,我会使用 Database Workbench。 上次我听说,Embarcadero 打算将 InterBase 支持添加到他们的一些数据库建模工具中,但我不知道是否已经发布。
Usually, I use a text editor. Occasionally, I use Database Workbench. Last I heard, Embarcadero was going to add InterBase support to some of their database modeling tools, but I don't know if that has shipped yet.
如果这是一个最近创建的全新数据库应用程序,并且在业务中不被依赖,那么我会说全力推进您的重写/新数据库。 然而,我怀疑您正在处理一个已经存在了几年并且被大量使用的数据库。
如果我对数据库已有几年历史的看法是正确的,我强烈建议不要从头开始。 几乎任何已经存在了几年的生产数据库都会“混乱”。 这通常是因为现实世界对程序的要求通常要求解决方案有些混乱。 几年后,您的全新数据库(如果您走这条路)也将如此。
以下是我不会从头开始重新创建生产数据库的一些原因:
这是我推荐的方法:
我知道这似乎是一个很长的路要走,但是从一个已经维护和创建数据库 12 年的人那里得到的答案是——你当前的数据库可能很混乱,因为现实世界的需求很混乱。
If this is a brand new database app that has recently been created and is not being relied on in the business, then I say full steam ahead with your re-write / new database. I suspect however that you are dealing with a database that has been around for a few years and is heavily used.
If I am right about the database being a few years old, I strongly recommend against starting from scratch. Almost any production database that has been around a few years will be "messy". This is usually because the real world requirements for programs usually demand the solutions to be somewhat messy. This will be true of your brand new database (should you go this route) a few years from now as well.
Here are some reasons I would not recreate a production database from scratch:
Here is the approach I recommend:
I know this seems like a very long way around, but take it from someone who has been maintaining and creating databases for 12 years now - your current database is probably messy because the real-world requirements are messy.