Questions tagged [express-cassandra]

Express Cassandra is a NodeJS ORM / ODM for Cassandra, written in Javascript.

Express-Cassandra is a Cassandra ORM/ODM for NodeJS. No more hassling with raw cql queries from your nodejs web frameworks. Express-Cassandra automatically loads your models and provides you with object oriented mapping to your cassandra tables like a standard ORM/ODM. It's decoupled nature allows you to use it with many popular node frameworks without much hassle.

If you have a question about express-cassandra (not a bug report) or having trouble using it, please post it here.

Documentation

http://express-cassandra.readthedocs.io/

Project HomePage

https://github.com/masumsoft/express-cassandra

Feature Requests, Enhancements and Bug Reports

https://github.com/masumsoft/express-cassandra/issues

20 questions
2
votes
1 answer

Express Cassandra Auto-Load Models from a Directory - models.instance.Person is not a constructor

I am basically trying to implement a person model from express-cassandra tutorial. I have problems with auto loading model from the model folder. My model is located in /models/PersonModel.js. module.exports = { fields:{ name :…
George Mamaladze
  • 7,593
  • 2
  • 36
  • 52
1
vote
1 answer

Unable to execute a timeseries query using a timeuuid as the primary key

My goal is to do a sum of the messages_sent and emails_sent per each DISTINCT provider_id value for a given time range (fromDate < stats_date_id < toDate), but without specifying a provider_id. In other words, I need to know about any and all…
1
vote
2 answers

Pausing cassandra stream for async operations

I want to pause my cassandra stream for some async operations before processing the next row. Each row is received in a readable event listener. I have tried using stream.pause but it does not in fact pauses the stream. I have also tried the same…
1
vote
1 answer

Need help in using express cassandra with multi-dc setup

Hello Stack overflow community! I need some help in figuring out the proper way to establish connections with the help of express cassandra orm model in nodejs for my multi dc (total dc =2 ) cassandra setup. We are currently using only 1 dc with…
1
vote
1 answer

Express-Cassandra OperationTimedOutError while creating tables

I am using express-Cassandra ORM and DB operation with Cassandra. Env: version: 2.1.1 nodejs 8.9.1 cassandra : 3.9 Cent OS: 6.0 Facing this issue, when running nodejs while initializing models in Cassandra and I need to restart nodejs multiple time…
0
votes
1 answer

Cassandra Server timeout during read query at consistency ONE (0 replica(s) responded over 1 required)

I am using cqlsh v5.0.1 where I have a 8 node cassandra cluster which has several tables where in I am scanning a table and have a simple logic that if a row is older than 6 months than I delete it and if its younger than 6 month then I update the…
Yash Tandon
  • 345
  • 5
  • 18
0
votes
0 answers

Querying express-cassandra with Uuid types

I'm trying to query cassandra with id but I get this error apollo.model.validator.invalidvalue: Invalid Value: "{ id: [Uuid] }" for Field: id (Type: uuid) In my code I have : const reqId = models.uuidFromString(req.params.id); const queryObj…
sotewa
  • 1
  • 1
0
votes
1 answer

Express-cassandra elassandra sorting by geo_point

I have the following UDT: udts: { geo_point: { lat: 'double', lon: 'double' } } The following geoloc defined in cassandra model: geoloc: { type: 'frozen', typeDef: '' } And elasticsearch mapping: "geoloc": { …
Max0999
  • 354
  • 4
  • 20
0
votes
1 answer

Getting apollo.model.save.dberror using Express Cassandra

I am currently using Cassandra 3.11 having 3 node cluster & consistency of one, along with NodeJS express cassandra client 2.3.0. I am using the method saveAsync for storing the model data. But I am getting an error :…
0
votes
1 answer

Cassandra SASI index or materialized view - performance improvement

I'm currently optimizing my application, and I want to find out which way would be faster and better performance-wise in the following scenario. I have a table with 4 fields - id, user, status, entryTime. I'm doing write to this endpoint around 100…
Patiss
  • 187
  • 3
  • 13
0
votes
1 answer

ExpressJS app which receives around 70 requests per second - slow Cassandra performance

This is not a question related to a code, but more to a server performance and things that I should check. So I have a ExpressJS server which is connected to a cassandra db (1 seed node and 2 nodes on 1 cluster, so in total 3 nodes). The API is…
Patiss
  • 187
  • 3
  • 13
0
votes
1 answer

All cassandra materialized views unconfigured table

So I have the following setup, I have a 8 servers on a local network, each of them running cassandra. 2 of the servers are seed nodes and rest are just regular nodes. If I run nodetool status, everything shows up correctly and all nodes are UN. I…
Patiss
  • 187
  • 3
  • 13
0
votes
1 answer

How do I setup esrally to use with elassandra and my own tests?

I'm wondering whether others have attempt benchmarking Elassandra (more specifically, I'm using express-cassandra) using esrally. I'm hoping to not spend to much more time on esrally if that's not a good solution to test Elassandra. Reading the…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
0
votes
1 answer

Appropriate way to denormalize Cassandra tables to support similar queries with additional parameters

My data model is really simple. It models visits to web pages. This is what my Visit model looks like (the syntax is express-cassandra schema syntax): fields: { id: { type: 'uuid', rule: { required: true, …
Laran Evans
  • 1,283
  • 5
  • 15
  • 31
0
votes
1 answer

Express-Cassandra multiple value search from SET data type in same query on a single column

In Express Cassandra, i have a method to get data from table using "contain" keyword where data type is SET now i get data from table while use single value in contain, my custom query given below var query = { participants: { $contains: uuid}, …
1
2