Better database??

michael at optusnet.com.au michael at optusnet.com.au
Wed Mar 3 03:25:30 CET 2004


Matthias Andree <matthias.andree at gmx.de> writes:
> michael at optusnet.com.au writes:
> 
> > [ Little rant: The datastore abstraction layer works in exactly the
> > wrong direction. The API makes everything look db instead of presenting
> > the bogofilter data to the datastore in standard way. argh!!! ]
> 
> Care to explain how you'd like the API to look like instead?

It's not really that bad, I'm just twisted because what I wanted
to do turned out to be really hard. 

What I was expecting was a layer that called a datastore saying
"Here's a token, a spam count, a good count and a date. store them".
and "Find me the counts and date associated with this token" and
"Here's the number of messages; Store it". etc etc.

The idea here is that bogofilter knows exactly what it wants to store,
and it would be nice if the datastore was told about it. This would
allow the datastore to use some intelligence in storing it.

At the moment, the layer does it the other way around: It 
presents an API to bogofilter and says "I'll store random
things: Do with me what you will".

Does that make any sense??

What I was looking to do was things like to use 16 bit counts for
storing ham+spam counts; To not store the date; To store the date in
an imprecise fashion; etc etc. Basically: To take advantage of the
knowledge of what it is that we're trying to store.

Michael.






More information about the Bogofilter mailing list