Skip to content
HomeVideosBooksBlogs
AllTop postsTopics
Podcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    S

    SQLskills

    sqlskills.com · Company blog · on HN since 2009

    SQLskills, run by Paul Randal and colleagues, publishes SQL Server internals, performance, high availability, and training material.

    Visit blogHN submissions
    DatabasesSystems & Performance
    What HN says

    HN commenters recommend its training as comprehensive and use its posts to correct myths, such as that SQL Server supports real nested transactions.

    Stats for nerds
    20HN people shared it
    8linked in comments
    53story points
    Jan 2025last shared
    2009people per year2025

    Top posts on HN

    1. 1
      Disk space is cheap… That's not the point
      1 person · 46 points · first shared 2011 · 29 comments on HN
    2. 2
      SQL Community salaries - International markets included
      1 person · 1 points · first shared 2011 · Discussion on HN
    3. 3
      Hi, I'm Paul Randal, and I'm an alcoholic
      1 person · 1 points · first shared 2023 · Discussion on HN
    4. 4
      In defense of transactional replication as an HA technology
      1 person · 1 points · first shared 2019 · Discussion on HN
    5. 5
      You Shouldn’t Use an Intel Xeon Silver Processor for SQL Server
      1 person · 1 points · first shared 2020 · Discussion on HN
    6. 6
      SQL requires lookup value to go up the tree when nonclustered key is non-unique
      1 person · 1 points · first shared 2020 · Discussion on HN
    7. 7
      Why you should not shrink your ms-sql data files
      1 person · 1 points · first shared 2010 · Discussion on HN
    8. 8
      You guys still use SQL Server 2000? Really?
      1 person · 1 points · first shared 2013 · Discussion on HN
    9. 9
      GUIDs as PRIMARY KEYs andor the clustering key
      1 person · first shared 2009
    10. 10
      Are io latencies killing your performance
      1 person · first shared 2015

    What HN people wrote when they linked it

    • rusanuJun 2017

      > Do a query, get back a handle to a file that you can treat just like you opened it yourself

      Things are a bit more complex. For one, the trivial problem of client vs. server host. The DB cannot return a handle (a FD) from the server, because it has no meaning on the host running the app. The second problem is that any file manipulation must conform to the DB semantics for transactions, locking, rollback and recovery.

      What you describe does exists, is the FileStream feature that dates back to 2007 if I remember correctly. I'm describing the SQL Server feature since this is what I'm familiar with. The app queries the DB for a token, using GET_FILESTREAM_TRANSACTION_CONTEXT[0] and then uses this token to get a Win32 handle for the 'file' using OpenSqlFilestream[1]. The result handle is valid for usual file handle operations (read, write, seek etc).
      There were great expectations on this feature, but in real life it flopped. For one it caused all sort of operational headache from the increased DB files size (increased backups size etc) or from problems like having to investigate 'filestream thumbstone status'[2]. But more importantly, adoption required application rewrite (to use the OpenSqlFilestream), which of course never materialized.

      File Tables is a newer stab at this problem and this one does allow to expose the DB files as a network share and apps can create and manipulate files on this share and everything is backed by the DB behind the scenes. But turns out a lot…

    • evadneJun 2017

      I recall reading something about this in the PostgreSQL mailing list, message written in 2016 but may still be relevant

      https://www.postgresql.org/message-id/20151222124018.bee10b60b3d9b58d7b3a1839@potentialtech.com

      “There's no substance to these claims. Chasing the links around we finally
      find this article:
      http://www.sqlskills.com/blogs/kimberly/guids-as-primary-keys-andor-the-clustering-key/
      which makes the reasonable argument that random primary keys can cause
      performance robbing fragmentation on clustered indexes.

      But Postgres doesn't _have_ clustered indexes, so that article doesn't
      apply at all. The other authors appear to have missed this important
      point.

      One could make the argument that the index itself becomming fragmented
      could cause some performance degredation, but I've yet to see any
      convincing evidence that index fragmentation produces any measurable
      performance issues (my own experiments have been inconclusive).”

    • nemothekidMay 2015

      200ms seems like a long time to me. From what I know, if your database takes longer than 100ms to return a query, theres something wrong[1] and CDNs have pretty much solved that "I need to get this static file around the world quickly."

      With just an song id, with S3/Cloudfront and [db of choice] I don't think it would be hard to deliver a song in less than 200ms (to the continental US atleast).

      [1] http://www.sqlskills.com/blogs/paul/are-io-latencies-killing-your-performance/ - Random article, I'm not sure where I picked it up from, but I've come to believe >100ms db latencies should be rare and when it happens, you messed up somewhere.

    • StrawberryFrogMay 2009

      There is a good reason why a GUID/UUID or the like should never be used as a database primary key when records are regularly added.

      The short answer is that the records are usually stored in the primary key order (clustered index) and every new record being inserted at a random location in the middle of this order rather than just added at the end causes problems.

      See
      http://stackoverflow.com/questions/583001/improving-performance-of-cluster-index-guid-primary-key

      http://sqlskills.com/BLOGS/KIMBERLY/post/GUIDs-as-PRIMARY-KEYs-andor-the-clustering-key.aspx

    • rawgabbitSep 2020

      I can give one example when SQL Server was purchased by Microsoft from Sybase. Overnight literally everyone claimed to be an expert. I did some research including asking the Microsoft employees I knew. It turned out there was one lady who did all the training at Sybase and who taught the Microsoft employees about their new database. That lady Kalen Delaney spoke highly of a husband and wife consulting team. The husband was ex Microsoft and designed some of the DBCC code. https://www.sqlskills.com/about/meet-the-team/

    • jud_whiteJan 2016

      > Coming from pretty heavy background in MSSQL internals, this article is really great.

      Do you know of any good resources for the undocumented function fn_dblog? I'm looking to understand the structure of RowLog Contents and Log Record in different Operations/Contexts to reconstruct DDL/DML.

      http://www.sqlskills.com/blogs/paul/inside-the-storage-engine-anatomy-of-a-record/ is a good example but is really just an introduction.

    Related

    Brent Ozarbrentozar.com84 people

    Things Developers Should Know About SQL Server (2013)

    Brent Ozar
    Personal · last shared 2026
    Turso Blogturso.tech102 people

    Working on databases from prison

    Turso Blog
    Company · last shared 2026
    Small Datumsmalldatum.blogspot.com63 people

    The original LSM paper

    Small Datum
    Personal · last shared 2026
    Aphyraphyr.com551 people

    Hexing the technical interview (2017)

    Aphyr
    Personal · last shared 2026
    Mike Bayertechspot.zzzeek.org40 people

    Asynchronous Python and Databases

    Mike Bayer
    Personal · last shared 2023
    Wesley Aptekar-Casselsblog.wesleyac.com50 people

    The Curse of NixOS

    Wesley Aptekar-Cassels
    Personal · last shared 2026
    Scattered Thoughtsscattered-thoughts.net186 people

    Against SQL

    Scattered Thoughts
    Personal · last shared 2026
    Fly.io Blogfly.io555 people

    My AI skeptic friends are all nuts

    Fly.io Blog
    Company · last shared 2026