LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-02-2009, 10:53 PM   #1
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Rep: Reputation: 0
Amarok and PostgreSQL problem


I'm using Amarok 1.4.9.1 in kubuntu 8.04, I have a library of almost 10 000 songs so SQlite couldn't handle it, so I decided to use postgreSQL, what happens is that it is incredibly slow, when I try to search a song it takes almost 1 or 2 minutes to search it, and also when I skip a song this happen sometimes. I tried to use MySQL but I never got it running, so I decided to use postgreSQL. Also I think I have a good computer (AMD Athlon X2 2.1 GHz, 2 Gb ram). Can someone help me please?? This is very annoying.
 
Old 02-02-2009, 11:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hard to say with that kind of input ... and I have no idea what
amarok (or Kubuntu?) does to PostgreSQL. My first impulse would
be to check amaroks output by starting it from a konsole, and to
see whether there's anything in postgres' logs. I also don't
know which version of postgres comes with kubuntu 8.04, so can't
make any recommendations regarding tuning.

Have you had a look at the database from a psql prompt, how long
do queries take that you run manually?


Cheers,
Tink

P.S.: I've reported this post to be moved to the ubuntu forum
because the question is quite vague, and requires knowledge of
the distro and how it packages the software involved to even
begin thinking about answering it ...
 
Old 02-03-2009, 01:17 AM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved: This thread is more suitable in Linux - Distributions -> Ubuntu and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-04-2009, 01:02 AM   #4
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
I will explain myself again, I'm using Amarok 1.4.9.2 in Kubuntu 8.04 and I have a library of almost 10 000 songs, Amarok has 3 ways of managing your music libarary, (SQlite, MySQL and posrgreSQL). SQlite is activated by default, but if you have a large collection of music you need another "engine" to manage your library, so I decided to use postgreSQL becauase I read in several places it was faster. What is happening is that when I search for songs or skip songs, sometimes it lasts up ti 2 minutes to perform the job and I consider that my CPU is fast enough (AMD X2 2.1 GHz and 2gb ram) so I would like to know of someone can help me with this issue that becomes very annoying sometimes.
 
Old 02-04-2009, 01:33 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Yes ... and you still haven't told us the postgres version number.

You also ...
  • Didn't state whether you checked postgres' log(s).
  • Didn't mention whether you tried running amarok from a console to see potential error messages.
  • Didn't say how postgres queries work when you run them manually from the interactive psql prompt.
 
Old 02-07-2009, 05:06 PM   #6
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
OK here is everything you asked for:
1) I checked postgres logs (I use postgres 8.3), and everything is empty.

2) When I run Amarok form a console this is what appears:

markez@Teresa:~$ amarokapp
kdecore (KAction): WARNING: KAction::insertKAccel( kaccel = 0x866470 ): KAccel object already contains an action name "play_pause"
QLayout "unnamed" added to QVBox "unnamed", which already has a layout
kdecore (KAction): WARNING: KAction::insertKAccel( kaccel = 0x866470 ): KAccel object already contains an action name "play_pause"
QLayout: Adding KToolBar/mainToolBar (child of QVBox/unnamed) to layout for PlaylistWindow/PlaylistWindow
QObject::connect: Incompatible sender/receiver arguments
StarManager::ratingsColorsChanged() --> ContextBrowser::ratingOrScoreOrLabelsChanged(const QString&)
STARTUP

3) When I try to run psql in my console this appears:

markez@Teresa:~$ psql
psql: FATAL: database "markez" does not exist

Last edited by markez; 02-07-2009 at 05:10 PM.
 
Old 02-07-2009, 06:00 PM   #7
ne pas
Member
 
Registered: Jul 2008
Posts: 55

Rep: Reputation: 23
It's not enough to say "here amarok, use postgres db from now on...". Did you followed the steps in Postresql HowTo? When you switch to "PostgreSQL", then run "Rescan Collection" and something is wrong with your postgres connection a message should pop up saying something like "Postgres server returned the following error: bla bla".
After creating and configuring the postgres database, check if you can connect to the db ("psql <database-name> <username>" as in the HowTo).
 
Old 02-08-2009, 01:37 AM   #8
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
When I type the psql command this appears, so I think everything is ok.

markez@Teresa:~$ psql amarok
Welcome to psql 8.3.5, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

amarok=#
 
Old 02-08-2009, 01:51 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In psql, try
\dt
to see which tables amarok defines. Then try to think up a query. :}


Cheers,
Tink
 
Old 02-08-2009, 07:50 PM   #10
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Thnak you all for your help, this happened when I typed \dt

List of relations
Schema | Name | Type | Owner
--------+-----------------+-------+--------
public | admin | table | amarok
public | album | table | amarok
public | amazon | table | amarok
public | artist | table | amarok
public | composer | table | amarok
public | devices | table | amarok
public | directories | table | amarok
public | embed | table | amarok
public | genre | table | amarok
public | images | table | amarok
public | labels | table | amarok
public | lyrics | table | amarok
public | playlists | table | amarok
public | podcastchannels | table | amarok
public | podcastepisodes | table | amarok
public | podcastfolders | table | amarok
public | related_artists | table | amarok
public | statistics | table | amarok
public | tags | table | amarok
public | tags_labels | table | amarok
public | uniqueid | table | amarok
public | year | table | amarok
(22 rows)
 
Old 02-09-2009, 02:53 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... I wouldn't have a clue which of the non-obvious
tables this has listed would hold track titles, e.g. ...

Have a play with some sql, try a
select * from tags;
or some of the other tables. My problem is that I know
nothing about amaroks internal workings (or its front-end
for that matter), so can't even begin to guess what it's
looking for where (or what your search terms were, for
instance).


Cheers,
Tink
 
Old 02-09-2009, 10:12 PM   #12
markez
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks anyway I appreciate your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postgresql problem eduac Linux - Software 0 08-31-2005 06:45 AM
Postgresql Problem mitrship Programming 3 07-28-2005 12:09 AM
PostgreSQL Problem r0ck Slackware 8 11-26-2004 11:02 AM
Postgresql problem BobNz Linux - Software 11 05-02-2004 02:43 PM
postgresql -odbc & postgresql-jdbc installation kjsubbu Linux - Software 0 06-19-2003 02:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration