Archive for July, 2009

Well, that is of course total bullshit. With that title I will conduct a small experiment.
I found that the least informative of my blog posts attract the most readers. So if this stays true with that post (and a title like that should attract at least some attention) I will add more noise here. Promise!


It is not chrismas, hence no quiz, but this was strangely surprising:

class A
@@t = "A::@@t"
T="A::T"

def self.s1; @@t; end
def self.s2; T; end
end

class B < A
def self.s1; @@t; end
def self.s2; T; end
end

class C < A
@@t = "C::@@t"
T="C::T"
def self.s1; @@t; [...]


class Array
def to_proc
proc do |obj|
self.map { |sym| obj.send(sym) }
end
end
end

gives you

Account.all.map(&%w(id email))


This benchmark compares thinking_sphinx with acts_as_xapian. We need a search engine that gives us the IDs of matching documents from a fulltext index, basic text search only.
Data

one table with 200k entries with 5k of text (avg) in one column
one table with 500k entries with 7k of text (avg) in 6 columns
one table with 500k entries [...]


While some of my 5 readers on average (per day) might already know, for everyone else: CouchDB will be part of the next Ubuntu release. And that one comes with long time support.
Congratulations, Couchies.