TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Have you ever changed your DBMS for a site running in production?

3 点作者 poops超过 9 年前
I&#x27;ve worked for places that write straight SQL &amp; places that use an ORM for all the things. I know one benefit of using an ORM is being able to switch to a different DBMS, but I&#x27;m wondering how often that&#x27;s happened. I&#x27;ve been writing web apps for almost 20 years, and have yet to see it happen.<p>I&#x27;m just wondering if anyone has actually done it, and what the reasons were?

4 条评论

bnchrch超过 9 年前
At my old job we had a lovely django app that acted as the base for multiple e-commerce sites. It&#x27;s database layer was initially MySQL but due do reliability issues, lack of robust admin tools and poor GIS support we made the move to postgres.<p>The switch in code was trivial as we were making full use of the Django ORM and the migration script we created was simple as they were both Relational DB&#x27;s. However most of our time was spend testing and creating fail safes as changing a production DB if done wrong can have dire consequences.
YoAdrian超过 9 年前
In 16 years, this has only happened once. I had an application running on 64-bit MySQL. We had a legacy app running on 32-bit Oracle. New CTO came along and made me switch the new app to Oracle since he didn&#x27;t want to support two DB platforms. Didn&#x27;t have ORM or Stored Procs (MySQL didn&#x27;t support SP at the time). The SQL wasn&#x27;t that complicated, but it took me a week to convert the whole thing. Downgrading to 32-bit DB slowed it down considerably. I left the company once the update went live.
kasey_junk超过 9 年前
I&#x27;ve worked in places that have switched dbs many times.<p>That said, the original reason I encountered for a db abstraction layer (orm or otherwise) was if you were selling software to be hosted on a clients stack. The more dbs you could support the better.
cameronwatters超过 9 年前
I&#x27;ve personally migrated projects from MySQL to PostgreSQL and I&#x27;m currently working with teams that are moving wholesale from MS SQL Server to MySQL.<p>I tend to abhor full ORMs that require layering deep knowledge of the ORM&#x27;s idioms on top of my existing knowledge of SQL and the underlying SQL implementation. An ORM doesn&#x27;t magically free me from understanding the actual implementation and the additional overhead often isn&#x27;t worth it.