rdbms

Is Functional to Relational mapping easier than Object to Relational?

懵懂的女人 提交于 2019-12-03 18:28:24
问题 Object-relational mapping has been well discussed, including on here. I have experience with a few approaches and the pitfalls and compromises. True resolution seems like it requires changes to the OO or relational models themselves. If using a functional language, does the same problem present itself? It seems to me that these two paradigms should fit together better than OO and RDBMS. The idea of thinking in sets in an RDBMS seems to mesh with the automatic parallelism that functional

NoSQL: How to retrieve a 'house' based on lat & long?

♀尐吖头ヾ 提交于 2019-12-03 16:31:40
I have a NoSQL system for storing real estate houses. One piece of information I have in my key-value store for each house is the longitude and latitude . If I wanted to retrieve all houses within a geo-lat/long box, like the SQL below: SELECT * from houses WHERE latitude IS BETWEEN xxx AND yyy AND longitude IS BETWEEN www AND zzz Question: How would I do this type of retrieval with NoSQL ... using just a key-value store system? Even if I could do this with NoSQL, would it even be efficient or would simply going back to using a tradition database retrieve this type of information faster? Sql

When to switch from Spreadsheet to RDBMS?

心不动则不痛 提交于 2019-12-03 14:43:06
I've volunteered with a Non-Governmental Organization to help with their record-keeping at their community centre. At present, there is only one community centre where all their data is stored. However, this is expected to change by the end of the year. Presently their data is maintained using a workbook with two sheets. Each record in the main sheet may have upto 100 follow-ups in the follow-up sheet. Data is loosely structured, and there are no explicit constraints. Moving all existing data from a spreadsheet to an RDBMS would require effort, but I'm willing to do that; particularly since

Storing conditional logic expressions/rules in a database

巧了我就是萌 提交于 2019-12-03 14:36:37
How can I store logical expressions using a RDBMS? I tag objects and would like to be able to build truth statements based on those tags. (These might be considered as virtual tags.) Tags new for_sale used offer Rule second_hand_goods = (!new or used) and for_sale new_offer = new and offer second_hand_offer = second_hand_goods and offer Rules should be able to reference both tags and other rules. Schemas that can be easily accessed by hibernate would be preferrable. Preferably it will be possible to retrieve the entire rule in one select/call? How do you guys store expressions and business

NoSQL / RDBMS hybrid with referential integrity (delete cascade)?

回眸只為那壹抹淺笑 提交于 2019-12-03 11:15:19
问题 Is there a database out there that gives you the benefit of referential integrity and being able to use a SQL type language for querying, but also lets entities be loosely defined with respect to their data attributes and also the relationships between them? E.g. take a RBAC type model where you have Permissions, Users, User Groups & Roles. A complex/flexible model could have the following rules: Roles can have one or more permissions and a permission can belong to one or more Roles Users can

Can redis fully replace mysql?

无人久伴 提交于 2019-12-03 11:01:13
Simple question, could I conceivably use redis instead of mysql for all sorts of web applications: social networks, geo-location services etc? Nothing is impossible in IT. But some things might get extremely complicated. Using key-value storage for things like full-text search might be extremely painfull. Also, as far as I see, it lack support for large, clustered databases: so on MySQL you have no problems if you grow over 100s of Gb in Database, and on Redis... Well, it will require more effort :-) So use it for what it was developed for, storing simple things which just need to be retreived

Hadoop and Django, is it possible?

爱⌒轻易说出口 提交于 2019-12-03 10:55:52
问题 From what I understood, Hadoop is a distributed storage system thingy. However what I don't really get is, can we replace normal RDBMS(MySQL, Postgresql, Oracle) with Hadoop? Or is Hadoop is just another type of filesystem and we CAN run RDBMS on it? Also, can Django integrated with Hadoop? Usually, how web frameworks (ASP.NET, PHP, Java(JSP,JSF, etc) ) integrate themselves with Hadoop? I am a bit confused with the Hadoop vs RDBMS and I would appreciate any explanation. (Sorry, I read the

Why isn't RDBMS Partition Tolerant in CAP Theorem and why is it Available?

余生长醉 提交于 2019-12-03 09:28:53
问题 Two points I don’t understand about RDBMS being CA in CAP Theorem : 1) It says RDBMS is not Partition Tolerant but how is RDBMS any less Partition Tolerant than other technologies like MongoDB or Cassandra? Is there a RDBMS setup where we give up CA to make it AP or CP? 2) How is it CAP-Available? Is it through master-slave setup? As in when the master dies, slave takes over writes? I’m a novice at DB architecture and CAP theorem so please bear with me. 回答1: A lot of databases now actually

“Relation” versus “relationship” in RDBMS/SQL?

瘦欲@ 提交于 2019-12-03 08:42:47
Coming from question “Relation” versus “relationship” What are definitions of "relation" vs. "relationship" in RDBMS (or database theory)? Update: I was somewhat perplexed by comment to my question: "relation is a synonym for table, and thus has a very precise meaning in terms of the schema stored in the computer" Update2: Had I answered incorrectly that question , in terms of RDBMS, having written that relation is one-side direction singular connection-dependence-link, i.e. from one table to another while relationship implies (not necessarily explicitly) more than one link connection in one

How would one represent scheduled events in an RDBMS?

微笑、不失礼 提交于 2019-12-03 07:41:14
I have to store scheduled events, (like say class times, for example) that can be organized on a weekly, daily or monthly basis. Events can occur, say, every Monday and Wednesday, or every second Thursday of the month. Is there a way to store this information in an RDBMS that adheres to 3NF? EDIT: This is not homework; I'm building something with a friend for our own edification and we want it in 3NF. To be specific, I'm trying to store the schedules for mass and confession times at RC parishes. These can be scheduled in a hell of a lot of ways, such as every Sunday at x time or every Tue/Thu