Giter Club home page Giter Club logo

Comments (7)

r4fek avatar r4fek commented on July 20, 2024

And what's the reason for having more than one connection to Cassandra?

from django-cassandra-engine.

mat-green avatar mat-green commented on July 20, 2024

My assumption is that you define a different connection for different keyspaces or is this incorrect?

from django-cassandra-engine.

danandersonasc avatar danandersonasc commented on July 20, 2024

The reverse question is a better one: what's the reason for restricting Django to just one Cassandra connection when syncdb does not?

from django-cassandra-engine.

r4fek avatar r4fek commented on July 20, 2024

I see your point now. This requires more than just changing one line in the source code. I'll look into this.

from django-cassandra-engine.

r4fek avatar r4fek commented on July 20, 2024

I guess I managed to fix this one.
From now:

  1. sync_cassandra syncs all keyspaces defined in settings (see testproject/settings/multi_cassandra.py for an example)
  2. You need to set Model.__keyspace__ on each model if you need to use more than one keyspace.

@mat-green @danandersonasc could you guys try it and let me know if this works as expected?

from django-cassandra-engine.

r4fek avatar r4fek commented on July 20, 2024

I thinks it works. Closing.

from django-cassandra-engine.

danandersonasc avatar danandersonasc commented on July 20, 2024

Agreed, it is working. Thanks!

from django-cassandra-engine.

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.