Questions tagged [cqlengine]

Cassandra CQL Object Mapper for Python

cqlengine is a Cassandra CQL 3 Object Mapper for Python. cqlengine is part of the Datastax python driver for Cassandra

Related links:

72 questions
9
votes
2 answers

Cassandra query making - Cannot execute this query as it might involve data filtering and thus may have unpredictable performance

I'd the following Cassandra Model:- class Automobile(Model): manufacturer = columns.Text(primary_key=True) year = columns.Integer(index=True) model = columns.Text(index=True) price = columns.Decimal(index=True) I needed the…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
7
votes
2 answers

CQL Engine Exception about a connection name not existing in registry

I get the following exception while trying to connect to a Cassandra DB using a Python Cassandra-Driver client running on Windows 2012 Server R2 - 64 bit. I could get this working on my personal laptop but not a machine that is hosted on Azure. I am…
7
votes
4 answers

Python cassandra-driver OperationTimeOut on every query in Celery task

I have a problem with every insert query (little query) which is executed in celery tasks asynchronously. In sync mode when i do insert all done great, but when it executed in apply_async() i get this: OperationTimedOut('errors=errors=errors={},…
Ellochka Cannibal
  • 1,750
  • 2
  • 19
  • 31
6
votes
2 answers

Cassandra - Cqlengine - TTL Support

I need to use TTL via cqlengine; But there is no documentation about it. Can someone help me about it. Thanks
4
votes
1 answer

How to search in cassandra case-insensitive?

I am learning cassandra with Python and specially with Django 2 using cqlengine. I am trying to search in database where I search for string that starts with the search parameter but I want to make it case insensitive. So if I have following…
Viral Joshi
  • 317
  • 2
  • 15
4
votes
1 answer

Python - Redis : Best practice serializing objects for storage in Redis

I am considering to serialize a big set of database records for cache in Redis, using python and Cassandra. I have either to serialize each record and persist a string in redis or to create a dictionary for each record and persist in redis as a list…
ABS
  • 2,626
  • 3
  • 28
  • 44
3
votes
1 answer

IN Query in Cassandra Where clause

I have a Scylla cluster with 3 Nodes and 1 Table created with the below Query CREATE TABLE id_features ( id int PRIMARY KEY, id_feature_1 int, id_feature_2 int, ) I am issuing below query from the application SELECT * FROM id_features…
sid
  • 97
  • 12
3
votes
1 answer

Updating UDT Set with CQLEngine

I'm new to Cassandra and I'm trying to use CQLEngine ORM to update set column which holds UDT but I can't and documentation doesn't say anything about custom types. My code is; class MyType(UserType): val = columns.Text() point =…
Robert
  • 151
  • 9
3
votes
2 answers

Django RESTful API error "type object 'User' has no attribute '_meta'"

I'm trying to build RESTful API's with django-rest-framework and cassandra, following step by step the official django-rest-framework tutorial at Django-rest-framework I encountered this error Traceback: File…
3
votes
2 answers

CqlEngine - sync_table() KeyError: 'cqlengine'

I am just starting to work with Cassandra in python using cqlengine. I tried following this link and tried ran this script: from cqlengine import columns from cqlengine import Model from cqlengine import connection from cqlengine.management import…
reza.safiyat
  • 499
  • 10
  • 21
3
votes
1 answer

How to query rows by blob primary key from Cassandra using Python's cqlengine

My Cassandra table looks like this: uid | flwuid | tuuid ------------------------+----------------------------+-------------------------------------- 0x50f893bf620d628f0500 | 0x527ce3c3c5ebc4dd7e8b4567 |…
Vitaly Chirkov
  • 1,692
  • 3
  • 17
  • 33
2
votes
1 answer

AttributeError: 'Student' object has no attribute '_values'

I am trying to write a flask application with cassandra and using Flask-CQLAlchemy library. And when I am trying to create an object of my model class(Student) it's giving me an error called 'Student' object has no attribute '_values'. Went through…
Sudarshan A
  • 135
  • 3
  • 13
2
votes
0 answers

Django Cassandra pagination

How can we paginate the Django Rest API with Cassandra, there is no offset to paginate, the only solution preferred so far is to use greater than(>) or less than(<) on primary keys with the limit. This will work to an extent, but only if I know…
Thomas John
  • 2,138
  • 2
  • 22
  • 38
2
votes
1 answer

Cassandra cqlengine increase logging verbosity

I am new to cassandra python client. I am currently debugging an issue that I am having with my local cassandra client. For the same, I want to increase the logging verbosity on the cassandra cqlengine client. I want to see detailed logs on what the…
user1855193
  • 123
  • 3
  • 10
2
votes
1 answer

TypeError: unsupported operand type(s) when the model is taken off queue

My intention is to create the cqlengine.models.Model instance in a separate process and send it via queue to the database manager. Unfortunatelly I am getting the TypeError if the multiprocessing queue is used The model from cassandra.cqlengine…
karelok
  • 301
  • 2
  • 9
1
2 3 4 5