Closed (won't fix)
Project:
Drupal core
Version:
x.y.z
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Nov 2005 at 06:21 UTC
Updated:
1 Feb 2006 at 12:27 UTC
Overview: Link
Patch attached that forces locale module inserts to generate sequence IDs using the sequence table rather than the auto_increment feature..
Thanks
Karthik.
| Comment | File | Size | Author |
|---|---|---|---|
| locale_16.patch | 1.49 KB | Zen |
Comments
Comment #1
Zen commentedComment #2
killes@www.drop.org commentedDid you actually try this patch with an uploaded PO file of some size? I don't think LOCKing and UNLOCKing the sequnces table several hundred times for one page load is a good idea (and I am speaking from experience). We already got problems with the PO upload, no reason to make it worse.
Comment #3
Zen commentedHi :)
No I haven't sorry. Can you point me to a suitable .po file for testing?
Off the cuff, perhaps a decent workaround would be to validate the input strings first and then call db_next_id (which can be modified to accept an optional "step" parameter) to update the sequence table by x, and then performing the INSERTs? That makes sense to me, and only one LOCK/UNLOCK needs to be performed.
Thanks for replying :)
Karthik.
Comment #4
killes@www.drop.org commentedThere are tons of PO files on the translations download page. Take Afrikaans for example it is rather complete. We could introduce such a proposed step parameter, yes, but I am really not sure if consistency is worth the trouble. I am generally open for suggestions on improvements for the PO upload process, it currently uses too much RAM and could probably be faster.
Comment #5
killes@www.drop.org commentedmarking this as won't fix.