Active
Project:
Single Login
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2010 at 14:17 UTC
Updated:
13 Apr 2010 at 20:41 UTC
Dear all,
Thanks for this great looking module.
Unfortunately, it contains some typical MySQL feature, which does not exist on any other database, including PostgreSQL:
query: INSERT INTO single_login_history
SET uid = 1, session_id =
'89fc6702ab35**********bdf1f26423d', date = 127*******32, ip =
'88.160.168.33', browser = 'Mozilla/5.0 (X11; U;
Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100402 Iceweasel/3.5.9 (like
Firefox/3.5.9)', type = 'cookie'
ON DUPLICATE KEY UPDATE date = 1271166632 in
/home/html/*************/www/sites/all/modules/single_login/single_login.module on
line 56.
There is a nice SQL developer guide here:
http://drupal.org/node/770068
I am trying to find a solution in one query and will report back.
Comments
Comment #1
grub3 commentedI think you should simply add unique indexes on:
uid, session_id, date, ip, browser
to avoid duplicated.
I see there is no index on you tables.
No index, means terrible server load.
Comment #2
deekayen commentedLooks like you pegged the wrong module issue queue.
Comment #3
grub3 commentedOkay, some more:
Comment #4
grub3 commentedSorry for the wrong module. Can you move it? Otherwize, close.
Comment #5
grub3 commentedOkay, moved to the right module.