Data management's misconceptions

 

Connecting state and local government leaders

On his way to an academic career, Fabian Pascal took a detour into database management systems.

On his way to an academic career, Fabian Pascal took a detour into database management systems.The technology firebrand and database consultant was working toward a degree in social sciences at the University of Haifa in northern Israel. He disliked the available data management tools so much that he started trying to improve them.After getting a bachelor's degree in economics, he received a master's in business administration with a concentration in information technology from Northwestern University of Chicago.Pascal operates a Web site called Database Debunkings, holds seminars and writes about database management fundamentals. Author of three books on databases, he frequently contributes to trade magazines and Web sites, where his work sparks spirited debate.Pascal is extremely critical of Extensible Markup Language in database administration and data exchange. A self-described contrarian, he also has bad things to say about Structured Query Language and commercial implementations of the relational database model.He has consulted for the Census Bureau, the CIA and the IRS, as well as for leading software vendors.GCN associate editor Joab Jackson interviewed Pascal by e-mail.PASCAL: XML claims to be an intersystem data exchange technology, but what it was intended to solve is HTML's lack of semantics. HTML tags express how data is presented or formatted, not what it means. XML tags purportedly express meaning.If my system sends data to your system, we must agree upfront on what data will be sent (in other words, the meaning) and some physical format. Once we agree on what to send, there's no need to include the meaning each time data is sent, because the exchange is between systems. Human readability is not an issue.XML tags are being repeated unnecessarily in every transmitted record when simple delimiters would do. Often XML tags actually overwhelm the data in frequency and size.There is a lot of talk about how XML can handle unstructured data, but that is a contradiction in terms. If it's unstructured, it's meaningless, random noise and therefore not carrying information.PASCAL: Data management requires some organizing structure, to which integrity constraints and manipulation can be applied. Constraints represent business rules; manipulation is querying and updating.Relational database theorist Edgar Codd defined a data model as a combination of structure, integrity constraints and manipulation. You can't manage data without a data model. The question is, what is the best structure for integrity and manipulation in general-purpose data management? XML fares quite poorly on that score.XML nestability defines a structure, but not integrity and manipulation. The XML structure is hierarchic. We discarded hierarchic database management decades ago because it was not cost-effective for various reasons. Why would we want to trade down?The relational model is nothing but logic and mathematics applied to database management. A DBMS is a deductive logic system.Each time a new fad emerges in the industry, such as multivalued, object or multidimensional DBMS, I ask proponents what they substituted for logic. I have yet to get an answer.Vendors and users cannot complicate the model, they complicate their products and practices by failing to adhere to it. Any relational principle or feature that is missing, violated or incorrectly implemented causes difficulties in practice.PASCAL: Whatever functions are missing from or poorly implemented in a DBMS, users must undertake in applications. That defeats the purpose of database management, and customers lose the practical benefits conferred by the model. There are many such flaws in SQL and products based on it.For instance, views'virtual tables'are the relational mechanism for logical data independence. They insulate applications from changes in the logical structure of a database. If applications access data via views, rather than directly in stored tables, whenever the tables change, the views will reflect the change and the applications won't have to be modified. This is a huge saving in development and maintenance.But in SQL products, multitable views cannot be updated. So updates must be applied directly to base tables, defeating logical data independence.This deficiency originates in part from SQL's allowance of duplicates, which are prohibited by the relational model. The possible presence of duplicates means an SQL DBMS cannot ensure that view updates are propagated correctly to the underlying tables. To avoid corruption, SQL products prohibit the update of such views altogether.Another example is SQL's use of nulls for missing data. The relational model is based on the real world's two-valued, true-false logic. To guarantee correctness, the logic underlying the relational model requires us to record in databases only facts known to be true. Nulls violate that requirement. They are essentially an attempt to mix up real-world data with our knowledge of it, substituting a three-valued logic. So DBMSes can produce results that are hard to understand, prone to misinterpretation or incorrect.PASCAL: At Census, I taught database and relational fundamentals and assessed SQL within that framework. At the IRS, I consulted on whether certain data management technology projects qualified as R&D expenses.I am in the education business as distinct from training. A lot of it is re-education'deprogramming practitioners misled by the industry.Foundational knowledge is practically impossible to acquire now. Seminars, conferences, books and trade media are interested only in product-specific information. Even academia is becoming a certification platform for vendors.PASCAL: Not just managers, but anybody involved with databases: administrators, application developers, even some end users. They should understand basics such as what is a database and a DBMS, what are database functions versus application functions, data independence, the several types of models (data, business, logical and physical) and the relational model.If you ask new practitioners about these things, even some with 10- or 15-year careers, they often don't know. They say, for example, that Oracle or DB2 is a database. Of course, both are database management systems. But the practitioners only know products. Would you want your doctor to know only how to use a stethoscope, but not know any anatomy or biology?PASCAL: Well, in fact, I detect a misconception in your question. Relational is a property of databases and DBMS [software], not applications.The industry has the notion that normalized databases perform poorly. It's based on confusion of the logical and physical levels of representation. In fact, normalization is a purely logical construct, whereas performance is determined entirely at the physical level, so it is not possible for the former to affect the latter.To the extent that normalized databases perform poorly in some'though not all'instances (and assuming no other factors), it's the fault of the physical implementation of SQL products. This may force users to denormalize for performance, which introduces redundancy and makes databases prone to corruption.To keep redundant data consistent, additional integrity constraints must be defined by users and enforced by the DBMS for each denormalized table. That is a prohibitive burden.Any performance gains come not from denormalization, but from the failure to implement those constraints. If and when they are added, performance drops back to the normalized level.In other words, it's product deficiencies that force users to trade integrity for performance, yet they erroneously blame normalization.

What's more

Last book read: Darwin's Black Box: The Biochemical Challenge to Evolution by Michael J. Behe


Last movie seen: 'The Corporation'


Military service: Signal Corps, Israeli Army


Sports/leisure activities: Running, reading, travel


Worst job: Anything involving doing without thinking


Personal motto: 'If I become popular, I'll worry where I've gone wrong.'

Fabian Pascal, database gadfly

Thor Swift















GCN: Why do you say Extensible Markup Language is being misused?









GCN: Why is XML not appropriate for data management?













GCN: What about SQL?











GCN: What did you do for Census and the IRS?







GCN: What fundamentals should database managers learn?





GCN: What misconceptions about relational applications limit developers from fully following the relational model?











X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.