News Reader on RjSteinert.com

July 15, 2010

  • 11:00am

    I had tons of work the last month and got a whole bunch of questions in the queue which I haven’t answered yet.

    Pawel, Mark, Kate, Felix, Andrew, Ludwig, Santos, ...

June 30, 2010

  • 11:00am

    Answering questions asked on the site.

    Frode Underhill asks:

    I have some applications that are logging to a MySQL database table.

    The table is pretty standard on the form:

    time
    BIGINT(20)
    source
    TINYINT(4)
    severity
    ENUM
    text
    VARCHAR(255)

    , where source...

June 21, 2010

  • 11:00am

    I’m finally back from my vacation. Tunisia’s great: dates, Carthage, sea and stuff.

    Now, to the questions.

    Mahen asks:

    Create a table called Group:

    Group
    id prodname
    1 X
    1 Y
    1 Z
    2 A
    2 B
    2...

May 27, 2010

May 19, 2010

  • 11:00am

    What is the problem with this query?

    SELECT  *
    FROM    orders
    WHERE   quantity <= 4
            AND urgency <= 4
    


    The problem is indexing strategy, of course. Which columns should we index?

    If we index quantity, the optimizer will be able to use the index to filter on it. However, filtering on urgency will require scanning all records with quantity < 4 and applying the urgency filter...

Need help?

Feeds shows the latest news items retrieved from the site's feeds. You can switch the display between articles, condensed list, and map display modes using the icons at the top right.

User login