Live data from Hacker News

Show HN: I wrote a free eBook about many lesser-known/secret database tricks

sqlfordevs.com

151–160 of 185 posts

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#151

The overall mantra of this book is: Don't reimplement database features in your application that the dbms can do for you. I really strongly agree with this, and even if you don't recall any of the concrete recipes in this book then this mantra will hopefully stick.

Don't make it a hard rule, though. There are exceptions to everything. Sometimes it's easier, faster or more flexible in the client.

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#152

Earlier quoted context omitted.

You don't value your time = free Other people do value their time, therefore it's not free for them.

Yes "nothing is free" yet we still often call these things free. It definitely wasn't free for him to make it. Average person on here views those hours as billable if they were to do it themselves, when they make decisions about what to do, or alternatives (opportunity cost). Maybe he should charge them consulting rates for this PDF (and not take their -- correction: an -- email. The horror). It's only because this i…

The thing is that calling something free and then asking for something in exchange can trigger someone on autistic spectrum, where likely there is an overrepresentation of on HN.

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#153
post #30

A person gives you a whole book they wrote for free and you're complaining about asking for an email? WTF

It's not exactly free if they're asking something in return.

If you're not technical enough to have a junk email address then you probably aren't technical enough to learn SQL tricks.

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#154

Earlier quoted context omitted.

Yeah, I was sad seeing some of the reactions. To each his own. For a student like me, I would gladly take a free resource and won't mind the newsletter. Maybe OP can also put a donate button for people who don't want to provide their E-Mail and get the book. Thanks a lot, tpetry!

The criticism is that it's not honest. "For free" is not correct. It's "book against harvesting your contact data". If that's what the first page would say, then it would be honest and nobody would be upset. But acting as if it's been "published" out of pure altruism is just misleading people, and they are righfully pointing that out.

Would you pay money in lieu of providing your real email address? If so, how much?

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#157
I don't want to diss this, it's useful to some but to say "Your database knowledge is outdated" is presumptuous to the point of insulting. It's basic to intermediate level stuff, like using CTEs to break up queries (and you don't discuss how this can overload the optimiser), and doing multiple aggs in one select.

I also can't C&P from your pages as they're images, but Ghost Conditions Against Unindexed Columns has '... AND type = in (3, 6, 11)' - is that right or did you mean 'type in (...)'. It also talks about multi-col indexes as being more useful in some cases, true, but very elementary.

This is good and well done, but please don't oversell it.

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#158
post #137
post #97

Earlier quoted context omitted.

Can you recommend some resources to achieve (b)? Just basic stuff without going full guru on every little detail. Or do you just mean using indexes basically? I'm just not sure how many unknown unknowns I have wrt sql.

The gist is: 1. Trace your application, so you know which query is running slowly in production. 2. Using this exact query, run `EXPLAIN ANALYZE` or whatever your RDBMS equivalent is. 3. Read the output, see which step is taking the slowest. Use google to help. 4. Google-fu until you find out which index might help you. Over time, (3) and (4) requires less and less Google, because there's really only a few common cas…

DB 'expert' here - agree completely. It's about profiling then banging your head against it and learning more from books/the docs/web. That's really it.

Re: Show HN: I wrote a free eBook about many lesser-known/secret database tricks

#160

Earlier quoted context omitted.

The criticism is that it's not honest. "For free" is not correct. It's "book against harvesting your contact data". If that's what the first page would say, then it would be honest and nobody would be upset. But acting as if it's been "published" out of pure altruism is just misleading people, and they are righfully pointing that out.

Would you pay money in lieu of providing your real email address? If so, how much?

I’d probably pay $10, that’s worth less to me than my contact info.
Post reply on HN