1 |
On Tuesday 29 Dec 2015 17:51:32 J. Roeleveld wrote: |
2 |
> On Tuesday, December 29, 2015 04:34:33 PM Mick wrote: |
3 |
> > On Tuesday 29 Dec 2015 14:18:20 J. Roeleveld wrote: |
4 |
> > > sqlite is nice, for single threaded applications. |
5 |
> > > For anything more advanced, either a wrapper is required or something |
6 |
> > > more advanced needs to be used. |
7 |
> > |
8 |
> > I like sqlite because it is self-contained, embedded in the application |
9 |
> > that uses it and accesses the data directly with functional calls, |
10 |
> > rather than looping around port/socket interfaces to speak to a server. |
11 |
> > This is why I kept it, since with Kmail1 it is not used much. |
12 |
> |
13 |
> SQLite never was reliable with akonadi. That might be why so many people |
14 |
> had all those issues. |
15 |
> |
16 |
> > With Kmail2 the database will be hammered so as you say will need |
17 |
> > something that can process things in parallel at speed and in higher |
18 |
> > volumes. So, I'm planning to install postgresql for this purpose, since |
19 |
> > in my experience mysql has had a number of hickups with akonadi. |
20 |
> |
21 |
> My experience as well, which is why I switched to Postgresql. |
22 |
> |
23 |
> > Can you please advise what GRANTS did you use to create a dedicated |
24 |
> > postgresql user for akonadi? |
25 |
> |
26 |
> Grants? |
27 |
> I did the following: |
28 |
> % createuser -P <akonadiuser> |
29 |
> (NOTE: You need to set a password, which is why I use the "-P" option) |
30 |
> |
31 |
> % createdb -E UTF8 -O <akonadiuser> <akonadidb> |
32 |
> |
33 |
> My config for this is: |
34 |
> |
35 |
> % cat .config/akonadi/akonadiserverrc |
36 |
> [%General] |
37 |
> Driver=QPSQL |
38 |
> |
39 |
> [QPSQL] |
40 |
> Name=<akonadidb> |
41 |
> Host=localhost |
42 |
> Options= |
43 |
> ServerPath=/usr/bin/pg_ctl |
44 |
> InitDbPath=/usr/bin/initdb |
45 |
> StartServer=false |
46 |
> User=<akonadiuser> |
47 |
> Password=<akonadipassword> |
48 |
> Port=5432 |
49 |
> |
50 |
> [Debug] |
51 |
> Tracer=null |
52 |
> |
53 |
> > Will the same user be used for Baloo indexing, or is this an additional |
54 |
> > database role? |
55 |
> |
56 |
> Afaik, no. Baloo uses it's own database engine. |
57 |
> |
58 |
> For the USE-flags: |
59 |
> |
60 |
> app-office/akonadi-server postgresql qt4 |
61 |
> (all other USE-flags disabled) |
62 |
> |
63 |
> -- |
64 |
> Joost |
65 |
|
66 |
Thank you very much Joost for holding my hand on this. Last question for the |
67 |
day: It seems that postgresql wants to install xemacs as a dependency ... o_O |
68 |
|
69 |
======================================== |
70 |
# emerge -uaDv emerge dev-db/postgresql |
71 |
|
72 |
These are the packages that would be merged, in order: |
73 |
|
74 |
Calculating dependencies... done! |
75 |
[ebuild N ] app-eselect/eselect-postgresql-1.2.1::gentoo 4 KiB |
76 |
[ebuild N ] app-eselect/eselect-ctags-1.18::gentoo 9 KiB |
77 |
[ebuild N ] app-eselect/eselect-emacs-1.18::gentoo 0 KiB |
78 |
[ebuild N ] dev-db/postgresql-9.4.5-r1:9.4::gentoo USE="ldap nls pam |
79 |
readline server ssl xml zlib -doc -kerberos (-libressl) -perl - |
80 |
pg_legacytimestamp -python (-selinux) -static-libs -tcl -threads -uuid" |
81 |
LINGUAS="en -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -ru -sk |
82 |
-sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python3_4" |
83 |
PYTHON_TARGETS="python2_7 python3_4" 17,248 KiB |
84 |
[ebuild N ] app-editors/xemacs-21.4.24::gentoo USE="X berkdb gdbm gif |
85 |
gpm jpeg ldap png tiff -Xaw3d -athena -canna -dnd -eolconv -freewnn -motif - |
86 |
mule -nas -neXt -pop -postgres -xface -xim" 8,383 KiB |
87 |
[ebuild N ] app-xemacs/xemacs-base-2.27::gentoo 524 KiB |
88 |
[ebuild N ] app-xemacs/emerge-1.11::gentoo 60 KiB |
89 |
|
90 |
Total: 7 packages (7 new), Size of downloads: 26,225 KiB |
91 |
|
92 |
Would you like to merge these packages? [Yes/No] |
93 |
================================================ |
94 |
|
95 |
Why is this? |
96 |
|
97 |
-- |
98 |
Regards, |
99 |
Mick |