Author: way0utwest

  • Big Data Problems

    Nate Silver is a “data guy.” He has made a career of analyzing data, and doing it well. His site, FiveThirtyEight, has become very popular in the last few years after some of their political predictions were surprisingly accurate. Now the site publishes analyses of sports, politics, economics, and more.

    Mr. Silver works with a lot of data, as does the rest of his company, and arguably, he’s one of the people that understands just what “big data” is and isn’t. We could argue about what the term means, but no matter what “big” is to you, Mr. Silver has some thoughts about the challenges we all face with larger data sets.

    In an interview, he noted that storage and access are always issues. Many of are us know this because we are charged with managing data. However he also talks about bias, false positives, and complexity being problems with an analysis that isn’t performed well. It’s a short piece, and I wish there were more depth since many of these topics could be the subject of a book all by themselves.

    While many of us aren’t in charge of performing the analysis, we do often work with those that do. We assist others in writing the queries or assembling the data. Our skill in helping perform analysis, understanding the meaning of data stored in our systems, and learning how to separate the signal from the noise will be talents that your employer will appreciate.

    Steve Jones

    The Voice of the DBA Podcast

    Listen to the MP3 Audio ( 2.0MB) podcast or subscribe to the feed at iTunes and LibSyn.

  • Share Your Passion at Summit ‘15

    Every Monday night on the week of the PASS Summit. Andy Warren and I host a networking dinner. This year we’re at the Yard House, and we’d love for you to come by if you don’t have plans Monday night. The event is from 6-9, but come early, come late, whatever works.

    You are responsible for paying your own way. You don’t have to eat dinner, but Andy and I will greet you and then introduce you to a few others that we hope you can enjoy an our or so with. All we ask is that you register so we know how many people are coming.

    We Can’t Do It All

    We set up the dinner as an event that people might enjoy if they didn’t have other plans. While there are a number of parties going on all week, most of the attendees don’t get invitations.

    We want to help everyone have a good time.

    With that in mind, we have asked a few people to think about hosting their own events after ours on Monday. The event could be anything from going to taste beers at the Tap House to having a cup of coffee at Barnes and Nobles (Andy’s choice) to listening to a local band at a bar somewhere near downtown. Pick anything you like to do and host a small event. It doesn’t have to cost anything, and who knows who you’ll meet.

    We have a few suggestions if you’d like to do something.

    • Choose an event you enjoy.
    • Pick something within walking distance from the Convention Center. The Space Needle is about as far as I might go from downtown.
    • Setup an event on EventBrite, Meetup, or somewhere else. Set a small limit to your tickets.
    • Let people know if there’s a theme or what you are looking to do. For example, chatting about good books at Barnes and Noble is a great choice.
    • Let people know if there is a cost. I’d highly recommend someone try to get people to do the Underground Tour. However you probably need to let them know to buy tickets in advance.
    • Enjoy

    This is a great way to meet some of your fellow data professionals. I’d love to see a few dozen events pop up every night during the week.

    If you’ve got questions, ask. If you have events, let me know, and I’ll try to publish them. We already have one, from the Midnight DBAs. Register for their Top Po Donuts get together on Monday night, or feel free to come to our networking dinner.

    Register for the Networking Dinner Monday, Oct 26

  • Working with People

    Many DBAs have gotten the reputation of being difficult to work with. I think some of this is based on the impedance mismatch between developers and DBAs that seems to cause issues in many organizations. Many developers want their changes to be deployed quickly, while DBAs want extensive review and testing to be sure that no problems will occur. This prioritization of stability over enhancements by DBAs does make us seem difficult to managers, PMs, and no shortage of clients.

    As the job of data professional has morphed and matured, many of us that might have been strictly DBAs or developers in the past now often need to work with many other people. We find all types and ranges of personalities that we must deal with, and I would guess many of us find other people difficult to deal with.

    Learning to work with difficult people is a skill itself, and I ran across a piece that talks about a few ways that each of us might work with those we find difficult. Maybe more importantly, if we are perceived as difficult, perhaps we can learn a few things about ourselves and how we might adjust our own personality to work with others, or even perhaps we can give others ideas on how to best interact with us. The piece looks at emotional intelligence (EQ), which isn’t necessarily correlated to any other sort of intelligence, so don’t think a low EQ implies anyone is lacking technical talent.

    Our interpersonal interactions are important. As important as our technical skills, if not more so. Learning more about ourselves and learning how to better work with others are important skills for us that can help ensure we have an enjoyable, as well as successful, career.

    Steve Jones

    The Voice of the DBA Podcast

    Listen to the MP3 Audio ( 2.0MB) podcast or subscribe to the feed at iTunes and LibSyn.

  • Custom Column in SQL Data Generator

    This is a series on SQL Data Generator, covering some interesting scenarios I’ve run into. If you’ve never tried it, SQL Data Generator is a part of the SQL Toolbelt. Give it a try today with an evaluation today.

    One of the interesting things with Redgate’s SQL Data Generator (SDG) is that it allows the user of custom data patterns for your columns. The user of regular expressions (RegEx) is used, which is something I find many SQL Server DBAs don’t really work with often.

    While there are plenty of RegEx tutorials out there, I wanted to give some simple ideas here that I’ve used to make slightly more realistic data.

    Help

    There’s a help icon available if you choose a column in one of your tables and have a regular expression selected. In this case, I can see there are a few different suggestions for the “title” column.

    2015-08-28 09_30_34-

    SDG guesses that title is a Mr/Mrs/Ms field, but it’s not. I really need something that looks like the title of an article. If I scan through some of the articles on SQLServerCentral, I see titles like:

    In this case, there are a few patterns. SQL Server appears in a few places, Some articles user a “top x” type of format. The word lengths vary, and are in the 6-12 range. Around six or so words are in many titles.

    Building a Regular Expression

    I could certainly do something like this, which just gives me a few words made up of random letters, of the specified lengths.

    [A-Z]{3} [A-Z]{5} [A-Z]{7} [A-Z]{4}

    I’ve got a 3 letter word, then a 5 letter one, then 7, then 4. All upper case, all random. That gives me results like this:

    2015-08-28 09_38_37-SQL Data Generator - TestSDG.sqlgen _

    Not quite what I want. I’d rather have some words at the beginning like “A”, “The”, or “Top”. I can do that with literals.I enclose those in parenthesis rather then brackets.

    (A|The|Top) [A-Z]{5} [A-Z]{7} [A-Z]{4}

    This gives me something slightly better.

    2015-08-28 09_41_23-Get Started

    Not perfect, but better. Let’s clean up the words themselves, following some capitalization rules for titles. In this case, we’ll use a pattern like this:

    [A-Z]{1}[a-z]{5}

    Now I see something a bit better. This doesn’t make complete sense, but it does look like random word structures.

    2015-08-28 09_43_20-SQL Data Generator - TestSDG.sqlgen _

    Let’s change the “Top” item to include a number. I can do that, but changing just the part of the OR (|) that includes Top. I’ll do that like this:

    (A|The|Top [3-7]{1})

    Now I see a number, randomly from 3 to 7, when Top comes up.

    2015-08-28 09_46_20-SQL Data Generator - TestSDG.sqlgen _

    This still isn’t great. How about if I include SQL Server at the end? I’ll use a space, or something with SQL Server.

    ( |(in|for|on) SQL Server)

    That shows me a random addition to SQL Server a the end of some titles.

    2015-08-28 09_48_31-SQL Data Generator - TestSDG.sqlgen _

    Getting better. I can even use the space or something to get the versions of SQL Server.

    ( |(in|for|on) SQL Server ( |2005|2008|2012|2014))

    Now I see some interesting titles. What if I want real words instead of random ones? There’s nothing wrong with random data for testing, but if I’m actually trying to compare data values in queries, it’s hard to focus on and remember random patterns. I could use the same OR values.

    (A|The|Top [3-7]{1}) (Blocking|Indexing|Tuning|T-SQL) (Tips|Techniques|Methods) (for| |in) ( |(in|for|on) SQL Server ( |2005|2008|2012|2014))

    Now I get some interesting, and perhaps memorable titles.

    2015-08-28 09_53_41-SQL Data Generator - TestSDG.sqlgen _

    Have Fun

    For much of our development work, the data itself doesn’t matter, but if needs to be easily discerned if you want to ensure that it’s easy to examine in queries. While random values work fine, I find them hard to deal with.

    I like the idea of using random words. Often the results are still nonsense, but they can be fun to work with. They remind me of a set of magnets my kids have on the fridge. Each is a word that will get randomly combined with others for humorous sentences.

    You can do the same thing with some RegEx and SDG.