non-relational-database

Nonrelational Databases for C++

こ雲淡風輕ζ 提交于 2019-12-05 06:43:03
问题 I was thinking of starting a project that very clearly needs a persistent store. I was about to reluctantly decide on a RDBMS, when I came across an article which briefly mentions CouchDB. Seems some advancements in DB technology have happened since I last looked, so I thought I would ask here about databases before I got into it. Here are my criteria. ( I list the criteria again at the end, so if you want to skip the explanations just scroll down. ) The project is open source and I will not

MongoDB beginner - to normalize or not to normalize?

元气小坏坏 提交于 2019-12-05 04:16:37
I'm going to try and make this as straight-forward as I can. Coming from MySQL and thinking in terms of tables, let's use the following example: Let's say that we have a real-estate website and we're displaying a list of houses normally, I'd use the following tables: houses - the real estate asset at hand owners - the owner of the house (one-to-many relationship with houses) agencies - the real-estate broker agency (many-to-many relationship with houses) images - many-to-one relationship with houses reviews - many-to-one relationship with houses I understand that MongoDB gives you the

App Engine Messaging System with Message Status - Design Pattern

混江龙づ霸主 提交于 2019-12-04 16:20:33
I'm building a Threaded Messaging System that will be hosted on Google AppEngine I've modeled it after the technique described by Brett Slatkin in Building Scalable, Complex Apps on App Engine class Message(db.Model): sender = db.StringProperty() body = db.TextProperty() class MessageIndex(db.Model): receivers = db.StringListProperty() The issue I'm having to determining the most efficient way to track the message state for a User. For example is a message read , archived , deleted for a particular user. Here are the solution I have come up with so far. I'm using Datastore+ 's

representing a many-to-many relationship in couchDB

穿精又带淫゛_ 提交于 2019-12-04 13:58:55
问题 Let's say I'm writing a log analysis application. The main domain object would be a LogEntry. In addition. users of the application define a LogTopic which describes what log entries they are interested in. As the application receives log entries it adds them to couchDB, and also checks them against all the LogTopics in the system to see if they match the criteria in the topic. If it does then the system should record that the entry matches the topic. Thus, there is a many-to-many

Why would I want to use a non-relational database?

房东的猫 提交于 2019-12-04 08:42:37
The latest craze in databases seems to be centered around non-relational databases. Why? It seems kind of counterproductive. For example, it makes much more sense to me to express my data in a relational way (example code in Django + SQL for tables): class Post(models.Model): name = models.CharField() created = models.DateTimeField(auto_now_create = True) class Comment(models.Model): text = models.TextField() post = models.ForeignKey('Post') created = models.DateTimeField(auto_now_create = True) SQL: create table post (id int primary key auto_increment, name varchar, created datetime); create

Complex Queries using GAE datastore

心不动则不痛 提交于 2019-12-04 03:29:34
I am in the early stages of developing a sports statistics website (ultimate frisbee) and would like to know your opinions if Google App Engine is right for me. I am writing it in Python using Django and have been comfortable with standard RDBMS for years but this site is a long term project and I am expecting very large amounts of data so I would like the "infinite" scaling that the GAE datastore offers. A vast majority of the queries to the database will return very standard results that would make the datastore seem like a logical choice. However, I would like to be able to make extremely

representing a many-to-many relationship in couchDB

对着背影说爱祢 提交于 2019-12-03 08:46:07
Let's say I'm writing a log analysis application. The main domain object would be a LogEntry. In addition. users of the application define a LogTopic which describes what log entries they are interested in. As the application receives log entries it adds them to couchDB, and also checks them against all the LogTopics in the system to see if they match the criteria in the topic. If it does then the system should record that the entry matches the topic. Thus, there is a many-to-many relationship between LogEntries and LogTopics. If I were storing this in a RDBMS I would do something like: CREATE

Relational vs Non-Relational Data Modeling - what's the difference

谁说我不能喝 提交于 2019-12-03 05:46:43
问题 I'm new to databases and I've never worked with any RDBMS. However I get the basic idea of relational databases. At least I think I do ;-) Let's say I have a user database with the following properties for each user: user id name zip city In a relational database I would for example model it in a table called user user id name location_id and have a second table called location location id zip city And location_id is a foreign key (reference) to an entry in the location table. If I understand

Relational vs. Dimensional Databases, what's the difference?

妖精的绣舞 提交于 2019-12-03 01:41:32
问题 I'm trying to learn about OLAP and data warehousing, and I'm confused about the difference between relational and dimensional modeling. Is dimensional modeling basically relational modeling, but allowing for redundant/un-normalized data? For example, let's say I have historical sales data on (product, city, # sales). I understand that the following would be a relational point-of-view: Product | City | # Sales Apples, San Francisco, 400 Apples, Boston, 700 Apples, Seattle, 600 Oranges, San

Relational vs Non-Relational Data Modeling - what's the difference

天涯浪子 提交于 2019-12-02 19:07:34
I'm new to databases and I've never worked with any RDBMS. However I get the basic idea of relational databases. At least I think I do ;-) Let's say I have a user database with the following properties for each user: user id name zip city In a relational database I would for example model it in a table called user user id name location_id and have a second table called location location id zip city And location_id is a foreign key (reference) to an entry in the location table. If I understand it right the advantage is here, if the zip code for a certain city changes I only have to change