Comments (5)
There is actually a new feature in the works that lets you wrap your code in a session.
using(var context = new CassandraContext(...)) {
using(var session = new CassandraSession(read: ConsistencyLevel.ONE, wrote" ConsistencyLevel.ONE)) {
...
}
}
So that you can control the ConsistencyLevel for the read and writes and make them different from the defaults in the connection string.
from fluentcassandra.
That looks absolutely brilliant!
Have you an idea of how to specify connection pooling / server pools yet? Or is that an area still in flux?
Have you thought about getting a wiki somewhere setup to start some documentation (I could potentially give you a hand). I'm not sure what GitHub offer in that respect?
Cheers,
Kieran
from fluentcassandra.
Sorry this took so long to get back to you.
For using Pooled or any of the advanced features you need to create a connection string. The connection string is pass in the exact same way.
using (var db = new CassandraContext("Keyspace=myspace;Server=10.10.0.1,10.10.0.2;Timeout=5;Pooled=True")) {
}
Does this work for you. I am still working out the algorithm for failover connections. But pooled should work as expected.
from fluentcassandra.
Thats perfect.
Is the connection string something standard or is it something you're working on just for this project?
from fluentcassandra.
It is just for this project.
from fluentcassandra.
Related Issues (20)
- FluentCassandra Thrift transport throws exception after idling due to Cassandra connection closed HOT 16
- Exception at insertion of an item with PRIMARY KEY of type BLOB HOT 8
- Composite columns HOT 4
- Direct Contributors Nomination HOT 2
- Is this fix the right thing to do? fix for issue #75: making sure null columns gets a proper default value HOT 6
- Error message reverses column family and keyspace in response
- High CPU utilization when reading with FluentCassandra HOT 1
- Memory leaking when working with large super columns
- Support for Blob Constant HOT 3
- exception should be thrown when cassandra is down HOT 2
- thrift client throws failed: unknown result or Bad protocol identifier HOT 3
- Switching build system to Albacore / Rake HOT 1
- Push Latest Code To NuGet HOT 1
- SingleServerManager goes into silent spin-loop on server failure HOT 14
- add Prepared Statement support
- Need updated documentation and more examples
- Incorrect code in MultiGetColumnCount.cs HOT 2
- Inserting composite key using API fails
- Various objects leaking HOT 5
- Multi-keyspace clusters cannot take advantage of connection pooling HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentcassandra.