Giter VIP home page Giter VIP logo

Comments (4)

wukehong avatar wukehong commented on July 29, 2024

这个我本人认为,可以不支持,你可以同时连接两个数据库,在应用层面自己解决这个问题。

from xorm.

insionng avatar insionng commented on July 29, 2024

的确应用层什么都能解决,就像缓存一样,xorm本来可以没有缓存,也可以在应用层解决.
但为什么建议在orm内部就支持呢?因为从底层支持和应用层支持有本质上的区别,应用层支持很多时候粒度非常大,成本很高,在底层就处理这个的话就比较容易做到,而且事成之后在基于xorm的架构里就可以轻松通过开关设置开启这样的功能,这对于用户节约开发时间和提升程序性能都极有好处!

from xorm.

nashtsai avatar nashtsai commented on July 29, 2024

this is a good and actually common use case, but I would solved the problem by writing proxy driver, which allow multiple hosts, and declaring roles inputted as part of dataSourceName param

from xorm.

lunny avatar lunny commented on July 29, 2024

referenced #78

from xorm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.