Il 26/12/2011 23:11, Fabricio Viana ha scritto:
> 
> I have a question:
>   Is It possible to use an SQL (PostgreSQL or MySQL) to index cache_dir 
> content?
>   Each time that Squid needs a file (JPEG, text-file, etc), It´ll do a SELECT 
> into the database and the response will be the cache subdir and filename.
>   I think that Mysql and PostgreSQL are faster to do this search than Squid 
> itself .
>   Does anyone have and ideia how to implement this?
>   Thanks!                                       

That's a very specific index that squid can keep in memory and search
(and update) in a very optimized way, i.e. very fast.
Adding an rdbms to the mix would only increase latency (thus speed),
memory consumption and administration overhead for no real benefit.
IMHO, of course.

-- 
Marcello Romani

Reply via email to