amagama
amagama copied to clipboard
Traceback when importing a very long source string
When importing a very long source string (the one causing this was over 18 000 characters), I get the following traceback from the import script (caused by PostgreSQL):
Traceback (most recent call last):
File "bin/amagama-manage", line 45, in
I guess the issue is the unique index. Maybe we could simply decide not to support such long strings, but a translator hitting that (and this was from a real life file) would definitely appreciate a TM match for it. (The string was the whole GPL and was just copied from source for the file I had, though.)
We will probably benefit from partly going back to using hashes, but only for indexes (not in a column as we did before): http://gjsql.wordpress.com/2009/04/19/how-to-speed-up-index-on-bytea-text-etc/ I'm not sure if that is the right solution, though.