nosql

What should be the considerations for choosing SQL/NoSQL?

Target application is a medium-sized website built to support several hundred to several thousand users an hour, with an option to scale above that. Data model is rather simple, and caching potential is pretty high (~10:1 ratio of read to edit actions). What should be the considerations when coming to choose between a relational, SQL-ba...

Fastest and stable non-sql database?

What is the fastest and most stable non-sql database to store big data and process thousands requests during the day (it's for traffic exchange service)? I've found Kdb+ and Berkeley DB. Are they good? Are there other options? More details... Each day server processes > 100K visits. For each visit I need to read corresponding stats fro...

Data storage advice needed: Best way to store location + time data?

I have a project in mind that will require the majority of queries to be keyed off of lat/long as well as date + time. Initially, I was thinking of a standard RDBMS where lat, long, and the datetime field are properly indexed. Then, I began thinking of a document based system where the document was essentially a timestamp and each doc...

Which CouchDB API to use for Rails?

I am currently investigating possible applications of CouchDB on my current project (written in Rails) and would like to get some feedback from people who have actually used these APIs. Which would you recommend and why? ActiveCouch CouchFoo CouchRest CouchRest-Rails CouchPotato ...

Cassandra API equivalent of "SELECT ... FROM ... WHERE id IN ('...', '...', '...');"

Assume the following data set: id age city phone == === ==== ===== alfred 30 london 3281283 jeff 43 sydney 2342734 joe 29 tokyo 1283881 kelly 54 new york 2394929 molly 20 london 1823881 rob 39 sydney 4928381 To get the following result set .. id age pho...

How to implement Object Databases in Asp.net MVC

I started my project in Asp.net MVC(c#) & SQL Server 2005.I want to implement Object Databases in my project. While searched in google i found "MongoDb" & db4o I didn't have enough knowledge in Object Databases & which one best suited for SQL Server 2005. Please suggest a good example/reference regarding Object Databases implementation...

Pulling random data from Cassandra DB

How can you pull some # of random keys from a Cassandra supercolumn? ...

MongoDB C# Driver Unable to Find by Object ID?

Using MongoDB C# driver (http://github.com/samus/mongodb-csharp), seems that I'm unable to get the data by ObjectId. Below the command that I'm using: var spec = new Document { { "_id", id } }; var doc = mc.FindOne(spec); I also tried this: var spec = new Document { { "_id", "ObjectId(\"" + id + "\")" } }; var doc = mc.FindOne(spec)...

Any client libraries that implement MVCC over Amazon SimpleDB?

Now that Amazon's SimpleDB implements consistent reads and conditional update/delete it is possible to implement cross-domain transactions using MVCC. Are there any client libraries that provide it? ...

Data-mapper and Cassandra

Hello, I not sure I have understood all the principles of nosql, especially Cassandra project, but I like to know if it's possible to have Cassandra working with Data-mapper ? I working on a ruby application using Data-mapper and MySQL and start to think of migrating to Cassandra. Is that something easy and worth doing ? Thanks a lot, Lu...

Example of moving from MySQL to NoSQL?

Hello, For a Facebook-like site, ie. which is write-intensive and delivers user-customized pages, I'd like to build a prototype to investigate whether the document-centric NoSQL architecture would be a good alternative to sharding and reduce the load on the single master (+ multiple slaves) that we currently use and is the bottleneck. ...

Suggest Cassandra data model for an existing schema

Hello guys! I hope there's someone who can help me suggest a suitable data model to be implemented using nosql database Apache Cassandra. More of than I need it to work under high loads and large amounts of data. Simplified I have 3 types of objects: Product Tag ProductTag Product: key - string key name - string .... - some other...

Is it bad practice to extend the MongoEngine User document?

I'm integrating MongoDB using MongoEngine. It provides auth and session support that a standard pymongo setup would lack. In regular django auth, it's considered bad practice to extend the User model since there's no guarantee it will be used correctly everywhere. Is this the case with mongoengine.django.auth? If it is considered bad...

Is there an efficient way to query a document database?

Since document databases store records in tree like structures the fields will never be at set positions. Does this make querying a document database inefficient, or would indexes just be used as with a normal relational database? ...

Help to choose NoSQL database for project

There is a table: doc_id(integer)-value(integer) Approximate 100.000 doc_id and 27.000.000 rows. Majority query on this table - searching documents similar to current document: select 10 documents with maximum of (count common to current document value)/(count ov values in document). Nowadays we use PostgreSQL. Table weight ...

Why do I get an error when inserting rows with Net::Cassandra::Easy and Cassandra 0.5x?

When using the Perl module Net::Cassandra::Easy to interface with Cassandra I use the following code to read colums col[123] from rows row[123] in the column-family Standard1: my $cassandra = Net::Cassandra::Easy->new(keyspace => 'Keyspace1', server => 'localhost'); $cassandra->connect(); my $result = $cassandra->get(['row1', 'row2', 'r...

How do I retrieve all columns for all matching rows with Perl's Net::Cassandra::Easy?

When using Perl's Net::Cassandra::Easy the following code will retrieve columns col[1-3] from rows row[1-3]: $result = $cassandra->get(['row1', 'row2', 'row3'], family => 'Standard1', byname => ['col1', 'col2', 'col3'); The corresponding SQL would be: SELECT col1, col2, col3 FROM rows WHERE id IN ('row1', 'row2', 'row3'); Suppose i...

A catalogue of Cassandra log messages: What is the correct interpretation?

The following is a complete catalogue of all log messages generated by Cassandra 0.6 when stress-testing a Cassandra installation over an extended period of time: AntiEntropyService: Sending AEService tree for (,) to: [] CassandraDaemon: Binding thrift service to localhost/N.N.N.N:N CassandraDaemon: Cassandra starting up... ColumnFamil...

Fetching all keys using the Cassandra API -- analogy to "SELECT id FROM table;"

The Cassandra command-line utility sstablekeys can be used to extract all defined row keys from a physical SSTABLE file: sstablekeys .../cassandra/data/Keyspace1/Standard1-N-Data.db Does the Cassandra API support retrieval of all defined keys? If so, how? I'm looking for the Cassandra analogy to SELECT id FROM table;. ...

Is sstable2json broken in Cassandra 0.6.0-beta3?

I'm getting NullPointerException:s when using sstable2json in Cassandra 0.6.0-beta3: $ bin/sstable2json .../cassandra/data/system/LocationInfo-1-Data.db Exception in thread "main" java.lang.NullPointerException at java.util.Arrays$ArrayList.<init>(Arrays.java:3357) at java.util.Arrays.asList(Arrays.java:3343) at org.apache.c...