Branding Mupatu
A sarcastic, dark but hilarious view of the advertising industry. Check it out…It might take a little while to start…
nikibobb just writing some notes
A sarcastic, dark but hilarious view of the advertising industry. Check it out…It might take a little while to start…
A funny cigarette disposal sign I saw on flickr. Even though it is worded badly, it makes some good points.
Carlos did a quick test earlier in the day on our Apache Derby backend and found that in a particular like query Derby was 23x slower than on a equality query over the same data set. Very often, databases do not optimize LIKE queries, partially because it is rare for them to support the types of indices such optimizations would require.
It took me a little while to find this gem on LIKE Transformations in the Derby tuning manual. Basically the document covers some transformations which the Derby SQL parser goes through to make LIKE queries optimizable. For me, this solved the problem as it allowed me to rewrite my query into a form that was optimizable albeit with a slight loss of functionality in my application. Unfortunately, this is not the case for all LIKE queries. The transformations are quite obvious and easy to follow once you see them, so take a look if you are having similar performance problems.
Before:
SELECT checksum FROM tags WHERE tag LIKE ‘%element%’
Gets parsed into – SELECT checksum FROM tags WHERE tag LIKE ‘%element%’
After
SELECT checksum FROM tags WHERE tag LIKE ‘element%’
Gets parsed into – SELECT checksum FROM tags WHERE tag >= ‘element’ AND tag < 'elemenu'
These transformations are also potentially useful with databases other than Derby when LIKE queries are running slow, as you could do them manually on your statements to the fullest extent possible potentially eliminating LIKE altogether.
![]()
Above and Beyond have released a podcast preview of their new album Tri-State. Make sure to check it out, it’s very well done, and gives you a chance to hear some of their less mainstream tracks. It of course includes Alone Tonight, which is definitely the best track so far this year in any genre. Alone Tonight has of course been getting heavy airplay on TATW.
Now all we need is a US release!!!
Check out this Lego short of Spider Man vs. Doctor Octopus. Great stop motion, and very exciting considering it is about four minutes long.