Questions tagged [datastax-csharp-driver]

16 questions
2
votes
2 answers

Cassandra C# Driver returns first 5000 rows only

I am trying to get all the records form Cassandra table but getting 5 thousand rows only. Is there any way to get all the result form a table? Below are the version details: It is the driver version 3.11.0 My server version is [cqlsh 5.0.1 |…
शेखर
  • 17,412
  • 13
  • 61
  • 117
1
vote
2 answers

Is there a way to use CancellationTokens with the C# driver to cancel a get request?

We have a scenario where a web request is being cancelled, but the queries triggered by the request are still either fully resolving or retrying despise the parent request being cancelled. Our query looks like the following: var dbo = await…
Crispy724
  • 13
  • 4
1
vote
1 answer

DataStax C# driver released versions

I see that DataStax C# driver v3.17 has an improvement we would like to use, but the C# driver page shows 3.16 as the latest version. However, the GitHub changes page shows versions up to 3.19.1, with dates I assume to be release dates. Is the…
Pedro Gordo
  • 1,825
  • 3
  • 21
  • 45
1
vote
2 answers

How do I set the read timeout for a specific query in the C# driver?

Problem I would like to set a timeout for a specific readonly query using the dotnet driver. Context I have a query likeselect count(*) from TABLE where ID=value I am aware that: count(*) queries are not efficient there is no guarantee that that…
mynkow
  • 4,408
  • 4
  • 38
  • 65
1
vote
1 answer

Unable to connect to Scylladb in Docker using C# driver

I have created a single node ScyllaDB in docker, which is up and running, and below is my docker-compose commands: version: "3" services: scylla-node1: container_name: scylla-node1 image: scylladb/scylla restart: always command: --smp…
Andy5
  • 2,319
  • 11
  • 45
  • 91
1
vote
2 answers

Can Cassanda aggregate LINQ expression in its query?

I am quite new to Cassandra so I have a question that I can not find answer to. In EF Core I can pass a list of LINQ expression as conditions and aggregate them so I can find what I need for example: public async Task>…
Wojciech Szabowicz
  • 3,646
  • 5
  • 43
  • 87
0
votes
0 answers

HashedWheelTimer returned Disposed exception, InvalidOperationException

UPDATE: I have found a hidden code which shutdowns the cluster. That was causing the exception. There is no bug in the driver. Driver version: 3.19.2 We have very high CPU intensive application querying Cassandra. The database itself is low in…
mynkow
  • 4,408
  • 4
  • 38
  • 65
0
votes
0 answers

Pagestate returned for a non existent page while using index

I'm utilizing the C# DataStax driver to retrieve data from a Cassandra database. To incorporate result paging into my application, I'm utilizing the FetchPageAsync method. However, there are instances where this method returns a page state string…
Coder
  • 406
  • 9
  • 22
0
votes
1 answer

Can I have two Cassandra Sessions in C# backend application?

I need to talk to two Cassandra clusters in my backend at stable environment. However, in beta I have only one cluster and it's config is duplicated, so during startup we create two sessions. Is it ok to have two sessions for one cluster? Also we…
0
votes
1 answer

Cassandra : map map datatype of UDT to SortedDictionary in .Net

I am using cassandra DB for .Net. I have created a datatype dictionary_type_property map inside user defined datatype, but facing problem while converting this datatype value to .Net dictionary type using udtMap. .Map(s =>…
0
votes
1 answer

Using private fields with the Cassandra C# driver

I'm trying to migrate one of my modules from Postgres (with EF) to Cassandra. Here is my best try for Cassandra mappings: internal sealed class UserMappings : Mappings { public UserMappings() { For().TableName("users") …
0
votes
1 answer

How do I store and load byte array (or image) to/from Cassandra?

Is there a way to store byte array in to cql database? I tried with blob but it didn't work. The table still have the blob column but I can't load nor store it. Here the code to create table CREATE TABLE tb (id int PRIMARY KEY, data blob); The…
Adon Lamp
  • 19
  • 5
0
votes
1 answer

What is the right approach for batch deletions with the Cassandra C# driver?

I am quite new to Cassandra database. I have a question related to use of cassandra. Table structure looks like below :- Table Name :- Product Details. ProductFamily Text, AccessGroup Text, ProductDetails Map ((ProductFamily), AccessGroup) PRIMARY…
0
votes
0 answers

Needing assistance with DSE C# driver configuration over SSL

Having trouble configuring a DSE C# driver to use SSL. I have spun up my own DSE Cluster with one node and node to node encryption as well as client to node encryption turned on. No errors! However below is a small code that I am using to test a…
Siguy12
  • 1
  • 1
0
votes
2 answers

How to store paging state in Cassandra c# driver?

I have read couple of links to implement manual paging using Cassandra c# driver. Links referred: Backward paging in cassandra c# driver https://datastax.github.io/csharp-driver/features/paging/ My requirement: I am trying to get list of all…
1
2