rdbms

Hadoop comparison to RDBMS

ⅰ亾dé卋堺 提交于 2019-11-29 02:42:32
I really do not understand the actual reason behind hadoop scaling better than RDBMS . Can anyone please explain at a granular level ? Has this got something to do with underlying datastructures & algorithms Ravindra babu RDBMS have challenges in handling huge data volumes of Terabytes & Peta bytes. Even if you have Redundant Array of Independent/Inexpensive Disks (RAID) & data shredding, it does not scale well for huge volume of data. You require very expensive hardware. EDIT: To answer, why RDBMS cannot scale, have a look at Overheads of RBDMS . Logging . Assembling log records and tracking

Does MS-SQL support in-memory tables?

前提是你 提交于 2019-11-29 01:25:42
Recently, I started changing some of our applications to support MS SQL Server as an alternative back end. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no need for permanent storage. What is the equivalent in MS SQL? A requirement is that I need to be able to use the temporary table just like any other, especially JOIN it with the permanent ones. @Keith This is a common misconception: Table variables are NOT necessarily stored in memory. In fact SQL Server decides

SQLite long to wide formats?

别等时光非礼了梦想. 提交于 2019-11-29 01:25:38
问题 I wonder if there is a canonical way to convert data from long to wide format in SQLite (is that operation usually in the domain of relational databases?). I tried to follow this example for MySQL but I guess SQLite does not have the same IF construct... Thanks! 回答1: IF is a non-standard MySQL extension. It's better to always use CASE which is standard SQL and works in all compliant databases, including SQLite and MySQL (and MSSQL, Oracle, Postgres, Access, Sybase... and on and on). Here's an

Help me put Oracle terminology into SQL Server terminology [closed]

Deadly 提交于 2019-11-29 01:22:11
问题 My company is now supporting Oracle for the first time, and most of my colleagues are SQL Server developers who haven't really worked with Oracle. I'm a little bit familiar with Oracle, but far from a genius on the subject. Unfortunately, that is enough to mean that I know more about Oracle than most of my co-workers, so I find myself constantly struggling to explain concepts I'm still learning myself in terms that people who aren't familiar with Oracle at all can understand. The biggest

How do cursors work in Python's DB-API?

故事扮演 提交于 2019-11-29 00:31:55
问题 I have been using python with RDBMS' (MySQL and PostgreSQL), and I have noticed that I really do not understand how to use a cursor. Usually, one have his script connect to the DB via a client DB-API (like psycopg2 or MySQLdb): connection = psycopg2.connect(host='otherhost', etc) And then one creates a cursor: cursor = connection.cursor() And then one can issue queries and commands: cursor.execute("SELECT * FROM etc") Now where is the result of the query, I wonder? is it on the server? or a

How many significant digits should I store in my database for a GPS coordinate?

房东的猫 提交于 2019-11-28 22:03:25
问题 I have in my MySQL database both longitude and latitude coordinates (GPS data). It's currently stored as: column type ------------------------ geolat decimal(10,6) geolng decimal(10,6) Question: Do I really need a data type as large as decimal(10,6) to properly store coordinate data? Since I have a combined index on the longitude and latitude, this index size is huge. If I can make it smaller without compromising anything, that would be great. 回答1: WGS84 datum are usually given as coordinates

What's the correct name for an “association table” (a many-to-many relationship) [closed]

泪湿孤枕 提交于 2019-11-28 19:16:13
What's the correct or most popular name for an "association table"? I've heard lookup, associative, resolving, mapping and junction table. Raj Kaimal Cross reference table. CustomerProductXRef. There is no "correct" name, but the academic name would be an "Associative Table" (see See the Wikipedia article Associative Entity ). Other common names are (in alphabetical order): Association table Bridge table Cross-reference table Crosswalk Intermediary table Intersection table Join table Junction table Link table Linking table Many-to-many resolver Map table Mapping table Pairing table

Create an inline SQL table on the fly (for an excluding left join)

跟風遠走 提交于 2019-11-28 19:14:24
Let's assume the following: Table A id | value ---------- 1 | red 2 | orange 5 | yellow 10 | green 11 | blue 12 | indigo 20 | violet I have a list of id's (10, 11, 12, 13, 14) that can be used to look up id's in this table. This list of id's is generated in my frontend. Using purely SQL, I need to select the id's from this list (10, 11, 12, 13, 14) that do not have entries in Table A (joining on the 'id' column). The result should be the resultset of id's 13 and 14. How can I accomplish this using only SQL? (Also, I'd like to avoid using a stored procedure if possible) The only approach I can

Overnormalization

风流意气都作罢 提交于 2019-11-28 18:17:36
When would a database design be described as overnormalized? Is this characterization an absolute one? Or is it dependent on the way it is used in the application? Thanks. In the general sense, I think that overnormalized is when you are doing so many JOINs to retrieve data that it is causing notable performance penalties and deadlocks on your database, even after you've tuned the heck out of your indexes. Obviously, for huge applications and sites like MySpace or eBay, de-normalization is a scaling requirement. As a developer for several small businesses, I tell you that in my experience it's

Best representation of an ordered list in a database?

社会主义新天地 提交于 2019-11-28 17:34:29
I know that this sort of goes against the principles of a relational database but let me describe the situation. I have a page where the user will place a number of items. ________________ | -Item1 | | -Item2 | | -Item3 | | -Item4 | |________________| These items have must stay in a the order the user gives them. However this order may be changed an arbitrary number of times by the user. ________________ | -Item1 | | -Item4 | | -Item2 | | -Item3 | |________________| Approach 1 My original thought was to give the items an index to represent thier place in the list Page Item ----------- --------