Summary | a fix for alarm sql scripts under MySQL |
Queue | Horde Base |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | jan (at) horde (dot) org |
Requester | vilius (at) lnk (dot) lt |
Created | 04/21/2007 (6624 days ago) |
Due | |
Updated | 04/25/2007 (6620 days ago) |
Assigned | 04/22/2007 (6623 days ago) |
Resolved | 04/25/2007 (6620 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
field. We can take care of alarm_id/alarm_uid combination being unique
in the PHP code, and two separate keys are still good enough.
be guids but they don't have to.
appear in the table several times, once for each user of that alarm.
be guids but they don't have to.
lead MySQL to not use indexes if column value is bigger than the key.
(until MySQL fixes this):
http://bugzilla.wikipedia.org/attachment.cgi?id=2478
Why don't we make the alarm_id be globally unique?
perspective? Don't use a primary key? Create a pseudo column with a
hash of both columns?
State ⇒ Assigned
Priority ⇒ 1. Low
State ⇒ Unconfirmed
New Attachment: alarm.patch
Queue ⇒ Horde Base
Summary ⇒ a fix for alarm sql scripts under MySQL
Type ⇒ Bug
+ VARCHAR(250) is 1500 bytes long. However even newest MySQL doesn't
support more than 1000 bytes for primary keys (see
http://bugs.mysql.com/bug.php?id=4541). I made a little bit smaller
alarm_uid field and a lot smaller alarm_id because it is not so
important as alarm_uid and in most extreme cases will be shorter as
first part of the uid is always fixed.