Closed (fixed)
Project:
Bibliography Module
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2007 at 21:15 UTC
Updated:
5 Jan 2010 at 01:57 UTC
Hi Ron,
What if the 7 «Custom» fields were set to text, instead of varchar 255, in the database? You never know until you ask...
Thanks again for your great work.
jv
Comments
Comment #1
rjerome commentedI'm guessing you need a bigger field?
Actually I was toying with restructuring the database such that data would no longer be stored in rows in the biblio table, but rather there would be a new table called biblio_data with a few columns (vid, field_type, value). value would them be "text" for all fields.
The downside to this is you couldn't go into the database a see all the values for a given entry in one row, the upside is it is much more efficient use of storage.
Comment #2
jeromev commentedPersonally, I would not see any problem concerning the downside you mention, if we can gain efficiency. I'm just wondering about the upgrade process to move all the data...
jv
Comment #3
rjerome commentedYes, well the devil is in the details... But seriously, I don't see that as a major problem, it's just a matter of parsing through the existing records and re-saving them in the new format, throw in a little validation, then clean out the original table. This of course will all be done by the update process, so (hopefully) the user will never know it happened.
Comment #4
bekasu commentedMarking issue closed.