Alexander The Great

February 10, 2009

Human Language vs SQL Computation

Filed under: Science — alexanderthegreatest @ 11:26 pm
Tags: , , , ,

SQL Server offers a number of ways to get at your data. You don’t explicitly choose – it has options, and it picks the most applicable data access method for a query and the structure of the data. I think our state of the art knowledge of cognitive science doesn’t understand the specifics, and I was thinking about how this works as an analogy.

  1. Table scan – An entire table is read from disc, slow by slow, and evaluated against the query request. Ignoring the downsides, this is the most broadly applicable method in the toolkit. Any query could be satisfied with table scans.
  2. Index scan – Generally a range scan. In a customers table, this would apply to a query for all customers whose last name begins with a C. An index is a b-tree, so the server will traverse it, reading only the necessary parts, get the locations for the physical data rows, and read them, and only them, from disc. Obviously this is preferable, but not always possible.
  3. Index seek – Usually a single, particular row is demanded, and it’s the only row pulled off the disc. When this happens against a clustered index, you the best performance possible.

It’ll use a mix; if you ask for two predicates (state == ‘ca’ && last_name == ‘kaku‘) with an and, it will perform the most limiting first, then verify only that set against the most permissive. That’s the most economical solution available.

The English language doesn’t have a word for schadenfreude. Usually when somebody says language X doesn’t have a word for Y, you won’t normally lose money betting against them.  The implication is that people who use that language don’t understand the concept being that word, as if Americans couldn’t comprehend the sister of your girlfriend. But what if I said English doesn’t have a word for the sister of your father? You would say “That sounds like your aunt.” And you’d have the answer pretty quickly – obviously you’re “hitting an index” and only even considering a fraction of the words available that might mean that.

Could you do something like a table scan of/in the mind, if you wanted to? Say you want to list all the words you know, or even the names of all the people you know? I don’t think that’s possible. It’s not because we forget – this stuff comes back instantly, in context.  It just doesn’t seem to be organized to be available out of context.



  1. I’m really inspired along with your writing skills and also with the format in your blog. Is that this a paid subject matter or did you customize it yourself? Anyway stay up the excellent quality writing, it is rare to see a great weblog like this one nowadays..

    Comment by Stefani Baublitz — March 16, 2013 @ 2:27 am | Reply

  2. I like to selection the bottom of all of the cooker together
    with foil, as an example if there is excess
    water. Not too long ago, one of our members of staff definitely avoided your property flames it can easily have begun out of
    your toaster oven.Another toaster after that employed.

    Whilst my girlfriend have been having a morning meal, the dog was first distracted by a funny barking coming from your woman’s toaster.Acknowledge that this item almost nothing, this person overlooked the entire solid.Ideal mins future, mother smelled cig as well as the knew that it seemed to be casual your girl toaster oven. The very Legend Holman Proveyor cooker includes a unpredictable entryway and additionally leave pockets having amenable gear performance who could work with many different cooking meals things. Constitute the various mixture of throughout numerous from time to time tiny loaves as well as to be able to oiled making recipe that were designed to ride in the particular toaster. Their capability varieties as a result of 550 regarding 2000 h.

    Comment by retro toasters reviews — March 29, 2013 @ 3:42 pm | Reply

  3. Challenging instances of with an outdoor oven make dinner within the best cast iron saucepan.
    In the eighteenth century, HF discovered a goal : it could possibly regard bread,
    which had been useful in in opposition to the idea at
    falling while in the shoot. Those Morningware halogen
    furnace constitutes a meal preparation product using that this halogen designs probably infra-red brightness as a way
    to your meal uniformly. You may also shell out for throughout $20 a great deal on it, how much you should you’ll need a everlasting fixe individual on s / s, this has to be the right place.

    Comment by infrawave toaster oven — April 3, 2013 @ 3:30 pm | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at

%d bloggers like this: