View Issue Details

IDProjectCategoryView StatusLast Update
0004893OXID eShop (all versions)4.01. Database handlingpublic2013-02-04 12:45
ReporterJaroslavHerber Assigned To 
PriorityhighSeveritytweakReproducibilityalways
Status resolvedResolutionno change required 
Summary0004893: Database: oxarticles.OXPARENTID should be varchar, not char(32)
Descriptionoxarticles.OXPARENTID can also be empty, so char(32) may use more storage than varchar.
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

JaroslavHerber

2013-02-04 10:48

reporter   ~0008368

After changing oxarticles.OXPARENTID to varchar the size of our oxarticles-table went down from 58.3 MiB to 42.3 MiB

Linas Kukulskis

2013-02-04 12:45

reporter   ~0008370

yes it saves memory, but lose in speed (http://dba.stackexchange.com/questions/2640/what-is-the-performance-impact-of-using-char-vs-varchar-on-a-fixed-size-field)

of course the pest way is to use integer, in near future we will go this way.