Bacula-users

Re: [Bacula-users] file table - additional indexes

2014-12-23 11:15:10
Subject: Re: [Bacula-users] file table - additional indexes
From: Dmitri Maziuk <dmaziuk AT bmrb.wisc DOT edu>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 23 Dec 2014 10:11:57 -0600
On 12/23/2014 8:53 AM, Dan Langille wrote:

> select * from file where fileindex = 23495
>
> It took a long time.
>
> I added this index: create index file_fileindex on file(fileindex)
...
> I am willing to sacrifice that space.  I’m also willing to bed that
> table updates won’t be affected by much at all.  We’ll find out on 4
> Jan when the full backups are run.

The issue is how often you query for a specific fileindex vs how often 
you update the file table. If you save 5 minutes once a year and lose 5 
seconds every night, that's not such a great trade-off.

Dima



------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>