【Cassandra 技能Get】教程文章相关的互联网学习教程文章

Cassandra与C#

使用asp.net csharp查询cassandra列系列时出现以下错误.我的卡桑德拉版本是1.2.1An unhandled exception of type ‘Cassandra.ProtocolErrorException’occurred in Cassandra.dll Additional information: Unknown code 10 for a consistency level请提出解决方案.解决方法:我认为您在创建集群实例时需要将协议版本明确指定为1. C#驱动程序的v3很新,而cassandra服务器的v1.2.1很旧.请查看此官方文档以了解详细信息:http://docs.d...

c#-将DateTime保存到Cassandra Date列【代码】

Cassandra .NET驱动程序文档真是太糟糕了,我试图将一些功能拼凑在一起,但我浪费大量时间试图从发现的Java文档中更改代码. 我正在尝试使用Cassandra驱动程序将数据写入一个简单的表.该表已经存在,并且里面有日期.我创建了一个映射并添加了一些列.这是演示的简化版本:For<Profile>().TableName("profiles").PartitionKey(p => p.IntegerId).Column(p => p.IntegerId, cm => cm.WithName("profileid")).Column(p => p.BirthDate, cm ...

c# – Cassandra System.OutOfMemoryException,它是一个Thrift错误吗?【代码】

我正在使用Cassandra 0.8.7,Aquiles作为C#客户端和Thrift 0.7,我试图从具有以下定义的SuperColumnFamily中获取大量数据:create column family SCF with column_type=Super and comparator=TimeUUIDType and subcomparator=AsciiType;我想将从Cassandra获取的数据插入到DataTable中,这样我就可以过滤行并根据它生成一些报告,但我总是得到一个OutOfMemoryException.[OutOfMemoryException: Exception of type 'System.OutOfMemoryEx...

尝试使用C#中的Guid作为Cassandra中的主键

我目前正在研究我的NoSQL项目,我有两个数据库Cassandra和Redis(我使用Redis进行缓存).现在使用Redis我有一个列表,我使用DataContract序列化我的自定义对象,但是当涉及到Cassandra时,我正在努力,因为我试图以某种方式在Cassandra表中插入Guid,其中我使用uuid作为主键.我在互联网上搜索过,我所能找到的只是Guid是Cassandra的uuid数据类型.我已经在Cassandra中使用now()插入了uuid所以我想知道我是否可以以某种方式从C#调用now()或者如...

cassandra c#驱动程序内存泄漏【代码】

使用cassandra .net驱动程序,我们面临以下问题:使用参数化INSERT插入大量行时,应用程序内存使用量不断增长:class Program {static Cluster cluster = Cluster.Builder().AddContactPoints(ConfigurationManager.AppSettings["address"]).Build();static Session session = cluster.Connect(ConfigurationManager.AppSettings["keyspace"]);static int counter = 0;static void Main(string[] args){for (int i = 0; i < 50; i++)...