Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Database

A Conversation with Jim Gray


DDJ: What is interesting is that the operating system that actually came out of Bell labs in the early '70s and late '60s was absolutely not object oriented in any way.

JG: Yes. In fact, Unix was a reaction to Multix, which Ken Thompson had worked on. It was an attempt to make an extremely system. It had to live in a very restricted environment. C++ was a derivative of BCPL. Simila 67 was also in the same algorithm genealogy. It was much more an experiment in what a good programming language ought to be as opposed to what a good system's programming language ought to be.

DDJ: I'm sorry. I sidetracked you.

JG: That's fine. At any rate, I had many interests and one of them grew out of the simulation work. In about 1971 or 1970, I went to work at IBM Research in New York and, subsequently, in San Jose. There was a lot of work, at that point, in databases going on. IBM was pushing, in fact, this idea of hierarchical data models. There was a small group of people who (inspired largely by Ted Codd) that believed that the hierarchical data model was just too hard. I guess everybody has an epiphany story -- A story in which they finally got it. For me the epiphany experience was to actually write a program in IMS. I just couldn't believe how hard it was. In particular, we did various studies while we were looking at these issues. By and large, for every DL1(?) statement, every IMS statement, it took 17 Debug runs in order to figure out whether it worked or not.

DDJ: Is that because the data was structured in graphs and they were possibly ... the way they put the locks?

JG: The actual problem, as far as I believe is that the interface was so arcane and the error cases were so a mess. That is to say that if you just step back as Charlie Bachman did and the DBTG guys did, and just thought about it abstractly, and you just drew things on the whiteboard, it was cool. It was fine. It was simple. It wasn't any problem. The actual implementations had this nightmare behavior thatyou could... There were so-called currency indicators associated with every set. You had a currency indicator. In IMS you had a position. If you moved to the cursor, and everything went fine, great. If you moved the cursor, and anything went wrong, you had no idea what state you were in. You're operating in this graph world where, in fact, the rules about what happens when a record gets deleted, and what happens when you get a "not found". What happens in all of these unusual cases was either not specified or was bad behavior. It wasn't simple. The top level, at the whiteboard level, I think IMS was okay. I think DBTG was okay. At the level which you actually had to operate in order to write programs, it was a nightmare.

DDJ: In your career, have you encountered other examples where implementation of some theory appears very ideal on the whiteboard, but turns out to be completely impractical?

JG: I have certainly seen people fall in the performance trap. You come up with an idea and it looks like a good idea, but nobody can actually figure out how to make it work with reasonable performance.

DDJ: Is that something that separates computer science from mathematics, for example.

JG: Right. It is the case that many people think that the relational model's great strength is its mathematical simplicity. I think that simplicity allowed people to nail down the corner cases. To say, "This is what you do when this happens." We have added a few features to SQL like "null values", which complicate every decision that you make about the relational database. People should have really thought, when they added nulls, whether this was worth the complication because, to this day, it is possible for one SQL guru to hand another SQL guru a SQL statement and say, "Tell me what this means"? It is a trick question. The person will go through the analysis and say, "Oh, it means this." They constantly forget that null values are in the picture. To restate it, I think the reason that relational systems caught on, and certainly the reason that I got enthusiastic about them, is that they had a simplicity which meant that they were actually going to be able to be used by people.


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.