MySQL Cluster analysis for foodmart

This is an automated analysis of the DBI:mysql:database=foodmart;host=localhost database for migration into MySQL Cluster. No warranty is made to the accuracy of the information.

This information should be valid for MySQL 4.1 and 5.0. Since 5.1 is not a final release yet, the numbers should be used as a guide only.

5.1-dd is for tables stored on disk. The ndb_size.pl estimates are experimental and should not be trusted. Notably we don’t take into account indexed columns being in DataMemory versus non-indexed on disk.

Parameter Settings

NOTE the configuration parameters below do not take into account system tables and other requirements.

Parameter4.15.05.1
DataMemory (kb)386243862437088
IndexMemory (kb)538164484044840
MaxNoOfTables212121
MaxNoOfAttributes225225225
MaxNoOfOrderedIndexes646464
MaxNoOfUniqueHashIndexes646464
MaxNoOfTriggers256256256

Memory usage because of parameters

Usage is in kilobytes. Actual usage will vary as you should set the parameters larger than those listed in the table above.

Parameter4.15.05.1
Attributes444444
Tables420420420
OrderedIndexes640640640
UniqueHashIndexes960960960

Table List


account

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
account_parentsmallint 6MUL444
account_rollupvarcharYES3032324
account_descriptionvarcharYES30323216
account_typevarcharYES3032328
custom_membersvarcharYES255256256120
account_idsmallint 6UNI444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_account_parentBTREEaccount_parent292525101010
i_account_idBTREEaccount_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes004
Row Overhead161616
Varsized Overhead0032
Column DataMemory/Row360360156
Index DataMemory/Row303030
Total DataMemory/Row406406234
Rows per 32kb page8080139
Current number of rows111111
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row917575
Rows per 8kb page90109109
Current number of rows111111
Total IndexMemory (kb)888

category

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
category_idvarcharYES30PRI323212
category_parentvarcharYES30MUL32320
category_descriptionvarcharYES30323224
category_rollupvarcharYES2552562560
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_category_parentBTREEcategory_parent572525101010
i_category_idBTREEcategory_id572525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes004
Row Overhead161616
Varsized Overhead0032
Column DataMemory/Row35235236
Index DataMemory/Row303030
Total DataMemory/Row398398114
Rows per 32kb page8282286
Current number of rows444
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row1477575
Rows per 8kb page55109109
Current number of rows444
Total IndexMemory (kb)888

currency

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
currencyvarcharYES30323212
currency_idsmallint 6MUL444
datedate 444
conversion_ratiodecimal(10,2) 000
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_currencyBTREEcurrency_id,date332525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes001
Row Overhead161616
Varsized Overhead0016
Column DataMemory/Row404020
Index DataMemory/Row202020
Total DataMemory/Row767672
Rows per 32kb page429429453
Current number of rows727272
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row665050
Rows per 8kb page124163163
Current number of rows727272
Total IndexMemory (kb)888

customer

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
customer_region_idint 11MUL444
marital_statusvarcharYES3032324
address3varcharYES3032320
num_cars_ownedint 11444
date_accnt_openeddate 444
total_childrensmallint 6444
fnamevarcharYES30MUL32328
ordinalint 11444
cityvarcharYES30323212
postal_codevarcharYES30MUL32328
customer_idint 11PRI444
num_children_at_homesmallint 6MUL444
gendervarcharYES3032324
mivarcharYES3032324
houseownervarcharYES3032324
countryvarcharYES3032328
educationvarcharYES30323220
address4varcharYES3032320
birthdatedate 444
member_cardvarcharYES3032328
occupationvarcharYES30323212
account_numbigint 20MUL888
address2varcharYES3032328
yearly_incomevarcharYES30323216
lnamevarcharYES30MUL32328
phone1varcharYES30323216
address1varcharYES30323220
state_provincevarcharYES3032324
phone2varcharYES30323216
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_customer_idBTREEcustomer_id292525101010
i_customer_children_at_homeBTREEnum_children_at_home292525101010
i_customer_postal_codeBTREEpostal_code572525101010
i_customer_region_idBTREEcustomer_region_id292525101010
i_account_numBTREEaccount_num332525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_customer_lnameBTREElname572525101010
i_customer_fnameBTREEfname572525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes0020
Row Overhead161616
Varsized Overhead00128
Column DataMemory/Row680680220
Index DataMemory/Row808080
Total DataMemory/Row776776444
Rows per 32kb page424273
Current number of rows102811028110281
Total DataMemory (kb)784078404512

IndexMemory Usage

 4.15.05.1
IndexMemory/Row324200200
Rows per 8kb page254040
Current number of rows102811028110281
Total IndexMemory (kb)329620642064

days

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
week_dayvarcharYES30323212
dayint 11444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes001
Row Overhead161616
Varsized Overhead0016
Column DataMemory/Row363616
Index DataMemory/Row101010
Total DataMemory/Row626258
Rows per 32kb page526526562
Current number of rows777
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows777
Total IndexMemory (kb)888

department

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
department_idint 11PRI444
department_descriptionvarcharYES30323224
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_department_idBTREEdepartment_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes001
Row Overhead161616
Varsized Overhead0016
Column DataMemory/Row363628
Index DataMemory/Row202020
Total DataMemory/Row727280
Rows per 32kb page453453408
Current number of rows121212
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row625050
Rows per 8kb page132163163
Current number of rows121212
Total IndexMemory (kb)888

employee

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
store_idint 11MUL444
marital_statusvarcharYES3032324
position_idint 11444
last_namevarcharYES3032328
education_levelvarcharYES30323220
supervisor_idint 11MUL444
hire_datetimestamp 444
employee_idint 11PRI444
department_idint 11MUL444
management_rolevarcharYES25525625620
gendervarcharYES3032324
full_namevarcharYES30323216
birth_datedate 444
salarydecimal(10,2) 000
position_titlevarcharYES30323224
end_datetimestamp 444
first_namevarcharYES3032328
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_employee_store_idBTREEstore_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_employee_idBTREEemployee_id292525101010
i_employee_department_idBTREEdepartment_id292525101010
i_employee_supervisor_idBTREEsupervisor_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes008
Row Overhead161616
Varsized Overhead0056
Column DataMemory/Row512512136
Index DataMemory/Row505050
Total DataMemory/Row578578258
Rows per 32kb page5656126
Current number of rows115511551155
Total DataMemory (kb)672672320

IndexMemory Usage

 4.15.05.1
IndexMemory/Row149125125
Rows per 8kb page546565
Current number of rows115511551155
Total IndexMemory (kb)176144144

expense_fact

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
time_idint 11MUL444
amountdecimal(10,2) 000
currency_idint 11444
category_idvarcharYES3032328
store_idint 11MUL444
exp_datedate 444
account_idint 11MUL444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_expense_time_idBTREEtime_id292525101010
i_expense_account_idBTREEaccount_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_expense_store_idBTREEstore_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes001
Row Overhead161616
Varsized Overhead0016
Column DataMemory/Row525228
Index DataMemory/Row404040
Total DataMemory/Row108108100
Rows per 32kb page302302326
Current number of rows240024002400
Total DataMemory (kb)256256256

IndexMemory Usage

 4.15.05.1
IndexMemory/Row120100100
Rows per 8kb page688181
Current number of rows240024002400
Total IndexMemory (kb)288240240

inventory_fact

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
store_idint 11MUL444
units_shippedint 11444
supply_timesmallint 6444
store_invoicedecimal(10,4) 000
time_idint 11MUL444
warehouse_costdecimal(10,4) 000
warehouse_idint 11MUL444
units_orderedint 11444
product_idint 11MUL444
warehouse_salesdecimal(10,4) 000
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_inv_1997_warehouse_idBTREEwarehouse_id292525101010
i_inv_1997_product_idBTREEproduct_id292525101010
i_inv_1997_store_idBTREEstore_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_inv_1997_time_idBTREEtime_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes000
Row Overhead161616
Varsized Overhead008
Column DataMemory/Row282828
Index DataMemory/Row505050
Total DataMemory/Row9494102
Rows per 32kb page347347320
Current number of rows113521135211352
Total DataMemory (kb)105610561152

IndexMemory Usage

 4.15.05.1
IndexMemory/Row149125125
Rows per 8kb page546565
Current number of rows113521135211352
Total IndexMemory (kb)168814001400

position

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
max_scaledecimal(10,2) 000
position_titlevarcharYES30323224
min_scaledecimal(10,2) 000
pay_typevarcharYES3032328
position_idint 11PRI444
management_rolevarcharYES30323220
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_position_idBTREEposition_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes003
Row Overhead161616
Varsized Overhead0028
Column DataMemory/Row10010056
Index DataMemory/Row202020
Total DataMemory/Row136136120
Rows per 32kb page240240272
Current number of rows181818
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row625050
Rows per 8kb page132163163
Current number of rows181818
Total IndexMemory (kb)888

product

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
recyclable_packagechar 1444
cases_per_palletsmallint 6444
gross_weightdouble 888
product_class_idint 11MUL444
brand_namevarcharYES60MUL646412
shelf_widthdouble 888
units_per_casesmallint 6444
SRPdecimal(10,2) 000
shelf_heightdouble 888
product_idint 11PRI444
net_weightdouble 888
shelf_depthdouble 888
low_fatchar 1444
product_namevarcharYES60MUL646424
SKUbigint 20MUL888
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_inv_1998_brand_nameBTREEbrand_name892525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_product_SKUBTREESKU332525101010
i_product_class_idBTREEproduct_class_id292525101010
i_product_nameBTREEproduct_name892525101010
i_product_idBTREEproduct_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes002
Row Overhead161616
Varsized Overhead0020
Column DataMemory/Row200200108
Index DataMemory/Row606060
Total DataMemory/Row276276204
Rows per 32kb page118118160
Current number of rows156015601560
Total DataMemory (kb)448448320

IndexMemory Usage

 4.15.05.1
IndexMemory/Row302150150
Rows per 8kb page275454
Current number of rows156015601560
Total IndexMemory (kb)464232232

product_class

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
product_class_idint 11444
product_familyvarcharYES30323212
product_departmentvarcharYES30323212
product_categoryvarcharYES30323216
product_subcategoryvarcharYES30323212
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes004
Row Overhead161616
Varsized Overhead0032
Column DataMemory/Row13213256
Index DataMemory/Row101010
Total DataMemory/Row158158114
Rows per 32kb page206206286
Current number of rows110110110
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows110110110
Total IndexMemory (kb)888

promotion

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
costdouble 888
end_datedate 444
promotion_namevarcharYES30323216
promotion_district_idint 11MUL444
media_typevarcharYES30323216
start_datedate 444
promotion_idint 11PRI444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_promotion_idBTREEpromotion_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_promotion_district_idBTREEpromotion_district_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes002
Row Overhead161616
Varsized Overhead0020
Column DataMemory/Row888856
Index DataMemory/Row303030
Total DataMemory/Row134134122
Rows per 32kb page243243267
Current number of rows186418641864
Total DataMemory (kb)256256224

IndexMemory Usage

 4.15.05.1
IndexMemory/Row917575
Rows per 8kb page90109109
Current number of rows186418641864
Total IndexMemory (kb)168144144

region

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
sales_regionvarcharYES30323212
region_idint 11444
sales_district_idint 11444
sales_countryvarcharYES3032328
sales_districtvarcharYES30323212
sales_state_provincevarcharYES3032324
sales_cityvarcharYES30323212
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes005
Row Overhead161616
Varsized Overhead0040
Column DataMemory/Row16816856
Index DataMemory/Row101010
Total DataMemory/Row194194122
Rows per 32kb page168168267
Current number of rows110110110
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows110110110
Total IndexMemory (kb)888

reserve_employee

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
store_idint 11MUL444
marital_statusvarcharYES3032324
position_idint 11444
last_namevarcharYES3032328
education_levelvarcharYES30323220
supervisor_idint 11MUL444
hire_datetimestamp 444
employee_idint 11PRI444
department_idint 11MUL444
gendervarcharYES3032324
full_namevarcharYES30323216
birth_datedate 444
salarydecimal(10,2) 000
position_titlevarcharYES3032320
end_datetimestamp 444
first_namevarcharYES3032328
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_reserve_employee_idBTREEemployee_id292525101010
i_reserve_employee_dept_idBTREEdepartment_id292525101010
i_reserve_employee_super_idBTREEsupervisor_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_reserve_employee_store_idBTREEstore_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes007
Row Overhead161616
Varsized Overhead0052
Column DataMemory/Row25625692
Index DataMemory/Row505050
Total DataMemory/Row322322210
Rows per 32kb page101101155
Current number of rows143143143
Total DataMemory (kb)646432

IndexMemory Usage

 4.15.05.1
IndexMemory/Row149125125
Rows per 8kb page546565
Current number of rows143143143
Total IndexMemory (kb)242424

salary

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
vacation_usedint 11444
currency_idint 11444
employee_idint 11444
pay_datedate 444
vacation_accruedint 11444
salary_paiddecimal(10,4) 000
overtime_paiddecimal(10,4) 000
department_idint 11444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes000
Row Overhead161616
Varsized Overhead008
Column DataMemory/Row242424
Index DataMemory/Row101010
Total DataMemory/Row505058
Rows per 32kb page652652562
Current number of rows212522125221252
Total DataMemory (kb)105610561216

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows212522125221252
Total IndexMemory (kb)688520520

sales_fact

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
store_idint 11MUL444
store_costdecimal(10,4) 000
time_idint 11MUL444
product_idint 11MUL444
customer_idint 11MUL444
unit_salesint 11444
store_salesdecimal(10,2) 000
promotion_idint 11MUL444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_sales_1997_product_idBTREEproduct_id292525101010
i_sales_1997_time_idBTREEtime_id292525101010
i_sales_1997_store_idBTREEstore_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010
i_sales_1997_promotion_idBTREEpromotion_id292525101010
i_sales_1997_customer_idBTREEcustomer_id292525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes000
Row Overhead161616
Varsized Overhead008
Column DataMemory/Row242424
Index DataMemory/Row606060
Total DataMemory/Row100100108
Rows per 32kb page326326302
Current number of rows269720269720269720
Total DataMemory (kb)264962649628608

IndexMemory Usage

 4.15.05.1
IndexMemory/Row178150150
Rows per 8kb page465454
Current number of rows269720269720269720
Total IndexMemory (kb)469123996039960

store

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
meat_sqftdouble 888
store_idint 11PRI444
store_faxvarcharYES30323216
last_remodel_datedate 444
coffee_barchar 1444
store_typevarcharYES30323216
floristchar 1444
region_idint 11MUL444
store_phonevarcharYES30323216
store_namevarcharYES30323212
store_street_addressvarcharYES30323220
store_cityvarcharYES30323212
store_postal_codevarcharYES3032328
store_sqftdouble 888
grocery_sqftdouble 888
frozen_sqftdouble 888
store_statevarcharYES3032328
store_managervarcharYES3032328
salad_barchar 1444
video_storechar 1444
store_numberint 11444
first_opened_datedate 444
prepared_foodchar 1444
store_countryvarcharYES3032328
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
i_store_region_idBTREEregion_id292525101010
i_store_idBTREEstore_id292525101010
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes0010
Row Overhead161616
Varsized Overhead0068
Column DataMemory/Row392392196
Index DataMemory/Row303030
Total DataMemory/Row438438310
Rows per 32kb page7474105
Current number of rows252525
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row917575
Rows per 8kb page90109109
Current number of rows252525
Total IndexMemory (kb)888

time_by_day

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
the_dayvarcharYES30323212
month_of_yearsmallint 6444
the_monthvarcharYES3032328
week_of_yearint 11444
the_datedate 444
quartervarcharYES3032324
the_yearsmallint 6444
time_idint 11444
fiscal_periodvarcharYES3032320
day_of_monthsmallint 6444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes004
Row Overhead161616
Varsized Overhead0032
Column DataMemory/Row15215248
Index DataMemory/Row101010
Total DataMemory/Row178178106
Rows per 32kb page183183307
Current number of rows730730730
Total DataMemory (kb)12812896

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows730730730
Total IndexMemory (kb)242424

warehouse

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
warehouse_cityvarcharYES30323212
wa_address4varcharYES3032320
wa_address3varcharYES3032320
wa_address1varcharYES30323220
warehouse_namevarcharYES60646424
warehouse_phonevarcharYES30323216
warehouse_state_provincevarcharYES3032328
warehouse_class_idint 11444
stores_idint 11444
warehouse_postal_codevarcharYES3032328
warehouse_idint 11444
warehouse_owner_namevarcharYES3032320
warehouse_faxvarcharYES30323216
warehouse_countryvarcharYES3032328
wa_address2varcharYES3032320
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes0012
Row Overhead161616
Varsized Overhead0080
Column DataMemory/Row428428124
Index DataMemory/Row101010
Total DataMemory/Row454454230
Rows per 32kb page7171141
Current number of rows242424
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows242424
Total IndexMemory (kb)888

warehouse_class

ColumnTypeVARSIZESizeKey4.1 NDB Size5.0 NDB Size5.1 NDB Size
descriptionvarcharYES30323216
warehouse_class_idint 11444
HIDDEN_NDB_PKEYbigint 8PRI888

 

Indexes

We assume that indexes are ORDERED (not created USING HASH). If order is not required, 10 bytes of data memory can be saved per row if the index is created USING HASH

IndexTypeColumns4.1 IdxMem5.0 IdxMem5.1 IdxMem4.1 DatMem5.0 DatMem5.1 DatMem
PRIMARYBTREEHIDDEN_NDB_PKEY332525101010

DataMemory Usage

 4.15.05.1
Nr Varsized Attributes001
Row Overhead161616
Varsized Overhead0016
Column DataMemory/Row363620
Index DataMemory/Row101010
Total DataMemory/Row626262
Rows per 32kb page526526526
Current number of rows666
Total DataMemory (kb)323232

IndexMemory Usage

 4.15.05.1
IndexMemory/Row332525
Rows per 8kb page248327327
Current number of rows666
Total IndexMemory (kb)888