Monday 26 March 2012

Query vs Change

My friend and fellow XML geek Erik Siegel writes about marketing XML databases in his latest blog post. Basically, Erik says that XML database vendors aren't doing themselves any favours by marketing their products simply as databases in the strictest definition of the word, that is, places for storing, indexing and querying data that happens to be XML, instead of bringing forward other relevant points having to do with processing the XML with other cool standards that all begin with the letter X.

I'm not going to argue the points he makes - they are perfectly valid and I agree with them - but one phrase in his list of XML database features struck a chord with me:
Processing Engine: On top of this data storage is always a processing engine. This engine can run XQuery programs for querying and manipulating the database. Besides XQuery it usually implements other X languages like XSLT, XProc, XInclude, Schema validations and the likes.
The emphasis is mine.

Manipulating, to me, means changing in some way. In other words, manipulating as opposed to querying. You may think I'm arguing semantics, especially considering that it's what you do with XQuery in an XML database. You query and you manipulate.

Problem is, for me, a database is all about storage, it's all about storing my data reliably. Yes, they all add functionality for all kinds of stuff, from queries to, well, manipulation, but to me, the focus is on reliable storage. If I store my data there, I want to know for certain that I can retrieve that same data three years later. I don't want to query and manipulate my data; I want to query my data and then do stuff with the data outside the storage area, if that makes sense.

That, of course, is where version handling comes in. If you manipulate data, you change it. But if you want to (reliably) store your old data, you first make a copy, then change the copy and store that, preferably linking the two versions with each other in some nifty manner, so that you'll know that they are related to each other, three years later.

Of course, that's quite a bit more functionality than that simple database for, erm, queries and manipulation, but to me, reliable versioning is what really makes them useful. Without it, I'd be constantly worried about my XQuery skills, which, I have to admit, could be better.

Friday 23 March 2012

Enthusiasts

A few years ago, I decided to pursue a dream. Instead of upgrading my sensible Volvo V70 to another sensible Volvo, I bought a Jaguar. Not one of the really fancy ones but nevertheless a real Jaguar, with a V8 engine that is capable of 300 bhp and enough speed for the Autobahn. It's a 2003 S-Type and one of my most precious possessions.

It's a thing of beauty. It has beautiful lines and an elegant interior with Jaguar's trademark wooden panels and charcoal-coloured leather. The equipment & accessories level is fabulous, with everything from electric seats and auto-dimming rearview mirrors to an integrated satnav and a built-in phone. And it's made for the driver; the whole experience is geared towards the person behind the wheel, fine-tuned for long road trips.

Not that it isn't practical enough for a family man like that sensible Volvo would have been; it is. There is enough room for the four of us in my family, should we decide to travel in style, and it's actually not al that expensive to drive if you stay away from the Sport button. The, shall we say, reputable British electrical system is more reliable than, well, its reputation, and the build quality is superior.

Should something break down, though, spare parts aren't more expensive than the sensible Volvo's, but the situation can nevertheless be tricky. See, you don't want every Tom, Dick or Harry at a Volvo shop to touch your Jag. A Volvo is one thing - it's means to an end, really, nothing more - but a Jag something else altogether. It's a priced possession and therefore cannot be left at the mercy of a time-slotted teenager at Volvo.

Which brings me to the subject of enthusiasts. I was lucky. First of all, I realised that I wanted to by my Jag from somebody who knows Jags, so I found Joe's Garage, a Lund, Sweden operation specialising in Jags. Nice and knowledgeable, they can also locate just the right car for you, should you not be satisfied with their current offerings. My S-Type was imported from Germany by them and then brought up to specs at their repair shop. And while I waited for the paperwork to complete in Lund, I couldn't help but notice the lid at the loo, boasting the Union Jack.

In fact, British colours were everywhere. Flags, coffee mugs, lounge paint... not to mention the twin-deck bus outside. The people at Joe's Garage are die-hard enthusiasts and anglophiles. I'm too, so it's a perfect match. Well, almost.

Servicing your new Jag at a shop a three-hour drive from home is cumbersome at best, so I was given the number to JaguarLars, a Gothenburg-based Jaguar shop named after its owner, a Jaguar enthusiast possibly even more fanatic than his peers in Lund. A former IT consultant, Lars realised a long time ago that he'd be far happier servicing, selling and buying Jaguars than sitting at a keyboard, and therefore set up a shop that only deals with Jaguars (well, actually he does currently have an Aston Martin DB7 on sale, but...). He knows everything about Jags, is always willing to spend a few minutes chatting about Jags, Top Gear and more, and- if you're lucky - will let you borrow his XJS while fixing yours.

And that's the thing; with buying Jaguars comes the territory. No, not the British gentleman in tweed or his yearly fox hunt, but the enthusiasts who are into Jaguars for a reason entirely different from what you explain to the bank when buying that sensible Volvo. Yes, you frequently drive to and from work with it, drop off your kid at figure skating training, or take it to the grocery shop, but you do it in style and with a smile.

The world can never be the same again.