7,244 karma · joined Sep 25, 2010 (16y ago) · 2,593 submissions
comment 13y ago · link · parent
In other words, don't compare snapchat to carrier pigeons, compare it to what those people would be using without snapchat: google chat, whatsapp, text messages, email, or one of 1000 other very slightly different ways to chat.
Sure, even a small number multiplied by millions can still become important. But let's not pretend that they invented the printing press.
Another way to look at it is that the internet and mobile data are what's connecting people. The fact that a bunch of people happen to use the same extremely shallow layer on top doesn't mean a whole lot.
comment 13y ago · link · parent
http://rhaas.blogspot.com/2012/04/did-i-say-32-cores-how-abo...
It's hard for me to tell what the MySQL benchmark was really doing, but the postgres one seems a bit more "normal" (ordinary SQL queries from postgres's ordinary simple benchmark tool).
So, not apples-to-apples, but still interesting.
comment 13y ago · link · parent
Strategically, because PostgreSQL is not just trying to be a free database checking off features. It's trying to be something better -- lots of innovation that is having a bigger impact on what developers and DBAs can do.
comment 13y ago · link · parent
I think there are two times when it makes sense to consider a DB migration: (1) early on, when it's easy; (2) if you are in major trouble with your existing DB.
comment 13y ago · link · parent
I think the biggest advantages are trust and flexibility.
Trust, because PostgreSQL language semantics are cleaner, closer to the SQL standard, and less likely to surprise you. And postgresql just has a good reputation for traditional engineering quality.
Flexibility, because it offers a lot of APIs and features that can be very useful to adapt your application as needs change. You don't have to go crazy with features, but even simple apps can benefit a lot from prudent use of them -- a trigger here, a foreign table there, or LISTEN/NOTIFY (for cache invalidation) can just save you a huge amount of work and make the system more robust overall. The extension mechanism is very powerful.
Before making any big decisions, do a trial migration and see what you think.
comment 13y ago · link · parent
* Why don't you think the optimizer is a consideration? That's a big deal, because it helps the database choose the right algorithms as your data changes. Continuing gracefully while the input data is changing sounds like scalability to me.
* Postgres is generally considered to scale to many concurrent connections and many cores. Useful for OLTP.
* Sometimes the right feature or extensibility hook can make a huge difference allowing you to do the work in the right place at the right time. For instance, LISTEN/NOTIFY makes it easier to build a caching layer that's properly invalidated -- not trivial to get right if the feature is missing, which might mean that you're not getting as much out of caching as you could be.
Tuning for SSDs, compression, buffer caching, etc., are the antithesis of scalability. Those things are pure performance issues. Scalability is about a system that adapts as input data and processing resources change. (Your point about replication does concern scalability, of course.)
comment 13y ago · link · parent
(I'm a postgres community member, so of course I'm glad it's working out for them, but I just don't like the analogy.)
comment 13y ago · link · parent
Have you looked at streaming replication in postgres?
http://www.postgresql.org/docs/9.3/static/high-availability.... http://www.postgresql.org/docs/9.3/static/warm-standby.html#...
I'm not sure what level of expertise your customers are at, so this might not work for you. But it seems like a better fit than slony at least.
comment 13y ago · link · parent
The news here is that, in addition to the huge market for traditional DBs, postgres is going to compete in a serious way on MongoDB's home turf. As that becomes more apparent, it will validate postgres's flexability/adaptability and cast doubt over special-purpose database systems and NoSQL.
MongoDB still has a story around clustering, of course. But that story is somewhat mixed (as all DB clustering stories are); and postgres is not standing still on that front, either.
(Disclaimer: I'm a member of the postgres community.)
comment 13y ago · link · parent
The root of the problem is more closely related to the imbalance of power in a lawsuit: one party has the ability to subject another to great cost; with little or no cost to themselves, even if they are completely wrong. That imbalance is what makes extortion possible, and this bill seems to be more directly aimed at that problem.
To force the plaintiff to take on more responsibility, perhaps they could go further and require posting a bond for the cost of the trial in case they are wrong. That would prevent them from just setting up shell companies and then saying they can't pay when they lose. The judge can be involved in setting the bond amount, which should help sort out the rest of the problems and keep the incentives reasonable.
comment 13y ago · link · parent
It may not be a great idea for everyone to use it. But it doesn't strike me as a really bad idea, either.
Postgres offers among the closest to standard SQL you can get if that's what you want.
comment 13y ago · link · parent
Seems to be paying off quite well. What other database can ship reliably every year with major new features and all kinds of improvements on many axes? And people still say the code is readable and the reliability is solid.
comment 13y ago · link · parent
But what if we actually built things that we already agree in advance to throw away? Maybe even start from two or three different plausible designs, and push on each one for a while until one seems to be winning? Then rewrite it, learning from the other contenders and from the prototype itself, all before shipping.
The obvious answer is that it would take too long. But I'm not so sure. They say designing software takes too long, also, but when I spend a few weeks designing, the implementation ends up going smoothly and hitting the target. Usually the features that are designed thoroughly at the start of the release hit the target, and other "quick" features that are added in later, sans design, take longer than the designed features and end up pushing the release out. Any overruns or missteps in the implementation of the well-designed features seem insignificant in comparison to things that skimped on design work.
comment 13y ago · link · parent
Changing the language changes your thinking about the problem. If you translate a program from erlang to C++, the result might be shorter and more reliable than if the first version is in C++ and you rewrite it in C++. It also might not be, of course, but the fact that it could be muddles the comparison.
comment 13y ago · link · parent
Due to concurrency, it's almost impossible to enforce unique constraints properly without actually executing the insert/update. Sometimes you can catch it ahead of time, but it's not guaranteed.
Knowing precisely which constraint failed helps improve the error message you give to the user, which may allow them to correct the problem. For instance, if you have two unique constraints involved in a transaction, your application can figure out which one was violated, and you can use that to give the user directions to correct it (e.g. "choose a different username" versus "that email address already has an account here, click here to send you the username").
comment 13y ago · link · parent
It looks like the author is entertaining the idea of postgres support (if you read further down the thread). A timely donation might make it happen.
Everyone has their own preferences for administration tools, so it's hard to find a one-to-one replacement. You might find something at one of these places though:
http://wiki.postgresql.org/wiki/Community_Guide_to_PostgreSQ... http://www.postgresonline.com/journal/index.php?/archives/13...
comment 13y ago · link · parent
It's also impossible for a human to do it. At least the optimizer will be awake at 3 in the morning and able to respond to data changes; the human will be asleep.
comment 13y ago · link · parent
They were invented for a reason: data changes. Data volume changes and data distribution changes. If your algorithms don't change to suit the inputs, performance will still fall off a cliff. That's a fundamental problem and not unique to SQL.
And this really only matters for somewhat "interesting" queries anyway. It's not like the database will all of a sudden change an "UPDATE foo SET x = x + 1 WHERE id = 13" into a 14-table join.
In practice, you have many queries adapting nicely to changing data, and then a couple where they get some estimates wrong and drive you crazy. But just because you are able to fix the plans in some of those instances doesn't make it a valid comparison. You have to compare it against hand crafting all of the plans (or writing equivalent algorithms) and the results of doing that. I suspect that in most cases, more plans will drive you crazy if you choose the plans rather than letting an optimizer do it.
Remember, the data is going to change once you get in production.
comment 13y ago · link · parent
What I was suggesting would have an outside chance of providing useful information. Given enough time, it would probably provide enough information to prevent the next phase from being a complete disaster.
You could say that every nation created (or major political upheaval) is an experiment. The U.S. certainly was. Unfortunately, it takes hundreds of years to start producing useful results, and even then, the results are very muddled.
comment 13y ago · link · parent
One drawback that would really concern me is: can people borrow against their basic income? That could be bad in so many ways. In fact, I could see that destroying the entire system. You could have people back at the food bank, and you ask them where their $10K went, and they tell you they have $500/mo in debt service.
But to eliminate that, you'd basically have to prevent people from making any forward promises dependent on that money, which could include things like apartment leases. I guess you could try making a web of special-case exceptions and loopholes by which you could do long-term housing leases but not long-term TV leases; but that sounds like it's turning the simple system into an accounting mess.
There are also numerous other drawbacks. People will still make bad choices and still end up with serious problems, so we'll still need other programs.
comment 13y ago · link · parent
1. Avoid action-at-a-distance and side-effects that are hard to reason about.
2. Use immutable objects and values rather than references and pointers.
3. Avoid intricate control flow with many branches.
4. Greater isolation of processes/threads (actor model).
5. Use systems and platforms with simple and strong guarantees (e.g. ACID) that are easy to reason about. Special cases and nuances to the underlying platform should be avoided.
6. Use tools with good support for static analysis (e.g. a good type system with a compiler that can understand it).
Exceptions seem to violate #1, #3, and #6.
These rules only apply to software engineering; that is, the reliability, robustness, long-term maintainability, and total project development cost (including maintenance and support).
Of course, there are other considerations, such as: performance, the time to achieve the minimum viable product, how much developers like the tools, how "hackable" it is, or utility for research purposes. These other concerns may be a good reason to violate the above rules.
comment 13y ago · link · parent
And then he cites the internet as an example, but dismisses it for no apparent reason.
The article reads as very condescending to engineers/technologists. It seems like the author thinks that technologists are out-of-touch geeks and need his e enlightened guidance to show them back to civilized society.
And the end makes no sense to me: "own our own data, tools, and derived intelligence — what I call our digital selves — and avoid becoming a society of digital serfs". So, he wants things to be so easy to use that you don't have to know anything about how they work, but he also wants people to be in control of their digital destiny? It doesn't work like that. Easy to use is great, but without knowing something about how the technology works you will always be a slave to it. No matter how rich you are, if you don't even know how to cook or clean, you will be a slave to your cooks and cleaners.
The only thing he has to offer is "Experience Driven Open-Source", which is incredibly vague. I say, go for it, as long as you aren't asking for my money to do it. I hope it produces some amazing things.
(I set aside the political garbage at the beginning of the article.)
comment 13y ago · link · parent
That sounds more like an unfortunate law of nature rather than our "current economic system". Even under communism or in hunter/gatherer groups there is pressure to do more with less; it's just not called "profit".
The important thing to do is avoid hiding long-term large risks with short-term safety. Our modern economic systems actually make that easier; although technology makes the long-term large risks larger.