Re: [nodejs] Post request taking ~120000ms

2014-05-24 Thread Bruno Fuster
Some notes: - why you're not getting the error on insert? It's just if (!err) - what's the difference between the one that works and the one that doesn't? Is your req.body.whatever sanitized? Inserting stuff and querying like that might be risky. Try to log what you're trying to insert. And tr

[nodejs] Post request taking ~120000ms

2014-05-24 Thread Ankit ladhania
I dont know what is happening sometimes cassandra is easily committing the post and storing data in ~20ms and other times the post takes ~12ms but the po