Code Monkey home page Code Monkey logo

Comments (7)

casbin-bot avatar casbin-bot commented on August 19, 2024

@tangyang9464 @JalinWang

from xorm-adapter.

hsluoyz avatar hsluoyz commented on August 19, 2024

@atreyamj what adapter do you use?

from xorm-adapter.

atreyamj avatar atreyamj commented on August 19, 2024

@hsluoyz , we use XORM adapter with Cloud Managed YugabyteDB ( Postrges)
On more deep dive - this is more of a yugabyte issue than XORM. The reason why it fails is because, XORM queries the metadata tables to determine whether it needs to create a table or not. However, the metadata table query operations are too slow in Yugabyte. Hence, was wondering if there is a way to just to skip metadata table query for checking whether XORM should create the table or not?

Essentially Is there a way, I can ask XORM to assume the table already exists instead of trying determine if it needs to create the table by querying the metadata tables?

from xorm-adapter.

casbin-bot avatar casbin-bot commented on August 19, 2024

@tangyang9464 @JalinWang @imp2002

from xorm-adapter.

hsluoyz avatar hsluoyz commented on August 19, 2024

@PokIsemaine

from xorm-adapter.

atreyamj avatar atreyamj commented on August 19, 2024

@hsluoyz and @thekartikeyamishra , thank you so much for your responses. Apologies in the delay in my response as I was away.

I will try your suggestions of custom adapter and if that doesnt work will circle back on the PR. :)

Really appreciate the responses !
Also, to re-iterate this is NOT a casbin issue but rather a DB issue. Hence the request to see if we can have connection without having to create table via casbin.

I think the custom adapter should fix it.

from xorm-adapter.

hsluoyz avatar hsluoyz commented on August 19, 2024

Closed for now

from xorm-adapter.

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.