]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/testing/batch-insert.readme
Update
[bacula/bacula] / bacula / patches / testing / batch-insert.readme
1 From: Eric Bollengier <eric AT eb.homelinux.org>
2
3 This patch allow you to use Batch insert mode with all database.
4 It have tested this with postgresql 8.1 and mysql 4.1 and sqlite.
5 You have to add to src/baconfig.h
6 #define HAVE_BATCH_FILE_INSERT 1
7
8 and you MUST change some indexes.
9
10 mysql)
11
12 ALTER TABLE Filename DROP INDEX Name;
13 ALTER TABLE Filename ADD UNIQUE (Name(255));
14
15 ALTER TABLE Path DROP INDEX Path;
16 ALTER TABLE Path ADD  UNIQUE (Path(255));
17
18 postgresql)
19
20 DROP INDEX filename_name_idx;
21 CREATE UNIQUE INDEX filename_name_idx on filename (name);
22
23 DROP INDEX path_name_idx;
24 CREATE UNIQUE INDEX path_name_idx on path (path);
25
26 sqlite)
27
28 drop index inx2;   
29 drop index inx1;   
30 CREATE UNIQUE INDEX path_name_idx on path (path);
31 CREATE UNIQUE INDEX filename_name_idx on filename (name);
32
33 $Log$
34 Revision 1.2  2007/01/01 16:52:05  ricozz
35 ebl  add #define in readme
36 ebl  works with 2.0.0
37
38 Revision 1.1  2006/12/20 18:47:42  ricozz
39 ebl  works with 1.39.30
40