SlideShare a Scribd company logo
Magento 2 Database Insight
Get your hands dirty with database
Version: Magento 2.2.2
Prepared By: Gideon Babu
Presented By: Gideon & Mohan
www.linkedin.com/in/gideon-babu/
www.linkedin.com/in/mohan-sg/
Magento & Database
● Magento built on Relational Database Management System
(RDBMS)
● Compatible with MySql, MariaDB 10.0+ and Percona 5.7
● Requires MySQL 5.6 and better for M2.2 installation
● Utilizes an Entity-Attribute-Value (EAV) data model
● Database information are stored in app/etc/env.php file
● M2.2.2 has 338 tables
Entity-Attribute-Model (EAV)
● Magento use EAV database model predominantly to store data.
● Entity type table name is eav_entity_type
● Eav_attribute holds all the attributes of customer, address, category, products,
order, invoice and shipment
● Entity attributes are grouped in eav_attribute_group table
● Products have attribute set to store sets of attributes. Likewise every attribute
is stores in atleast single attribute set and that is stored in eav_attribute_set
table.
● Product swatch options are stored in eav_attribute_option_swatch table
Catalog Category
● Tables related to catalog category prefixed with catalog_category
● All categories related information are stores in tables prefixed
catalog_category
● Category information are stores on specific data type tables. For instance
category name is of type varchar and so stores in
catalog_category_entity_varchar.
● Category int values are stored in catalog_category_entity_int
● Products mapped to a category is stored in catalog_category_product
Product Tables
● catalog_product_entity => main product table
● catalog_product_entity_varchar => Title & Description & URL
● catalog_product_website => Assign Product to Website
● catalog_product_entity_decimal => Product Price
● catalog_product_index_price => Assign All Group Wise Price
● catalog_category_product => Assign Product to Category
● catalog_product_entity_int => Status & Visibility
● cataloginventory_stock_item => For Inventory Quantity
● url_rewrite => For URL Rewrite
● eav_attribute => store ALL Attributes
● catalog_url_rewrite_product_category => For URL Rewrite
Catalog Product
● 68 tables related to catalog products
● Child tables are with prefix catalog_product_entity_
● catalog_product_entity_datetime => Product – date attribute are stored here.
Eg: New From, New To
● catalog_product_entity_media_gallery => product images path, Thumb , small,
etc.,
● catalog_product_entity_media_gallery_value – Product image, product image
position, title info & position of image info, etc.,
● catalog_product_entity_tier_price – Product tier price
● catalog_product_entity_varchar – Product name, URL, image path, etc.
Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version
Configurable and Grouped
Configurable and grouped product information get it from below tables
● catalog_product_super_attribute
● catalog_product_super_attribute_label
● catalog_product_super_link
Bundled Product
Bundled product associated values from below table
● catalog_product_bundle_option
● Catalog_product_bundle_option_value
● catalog_product_bundle_price_index
● Catalog_product_bundle_selection
● Catalog_product_bundle_selection_price
● catalog_product_bundle_stock_index
Downloadable Product
Tables related to downloaded product information
● downloadable_link
● downloadable_link_price
● downloadable_link_purchased
● downloadable_link_purchased_item
● downloadable_link_title
● downloadable_sample
● downloadable_sample_title
Related Products
Related products information is stored in these tables:
● catalog_product_link
● catalog_product_link_attribute
● catalog_product_link_attribute_decimal
● catalog_product_link_attribute_int
● catalog_product_link_attribute_varchar
● catalog_product_link_type
Product Custom Option
Product custom option information will get from below tables
● catalog_product_option
● catalog_product_option_price
● catalog_product_option_title
● catalog_product_option_type_price
● catalog_product_option_type_title
● catalog_product_option_type_value
Inventory, website and Alerts
Product inventory information are stored in these tables:
● cataloginventory_stock
● cataloginventory_stock_item
● cataloginventory_stock_status – Currently Product is instock or out off stock
Catalog_product_website stores data of which website the product belongs to.
Product alerts are stored in product_alert_price and product_alert_stock tables
Product Ratings
Product ratings are stored in the tables below:
● rating
● rating_option
● rating_title
● rating_entity
● raing_option_vote_aggregated
● rating_option_vote
● rating_store
Product Reviews
Product reviews are stored in the tables below:
● review
● review_detail
● review_entity
● review_status
● review_store
Shopping Cart / Cart
Products in shopping carts are stored in these tables before they are converted
into orders.
● Quote => each customer shopping cart is saved in a row in the quote main
table
● Quote_item => each product holds each row in quote_item table
● Quote_address => billing and shipping address of the quote
● Quote_address_item => ship to multiple address as each item mapped to
separate address
● Quote_item_option => Options of the product in the cart
● Quote_payment => payment information like payment method, cost, etc.,
● Quote_shipping_rate => shipping cost, method, title, code
Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version
Sales Order
These are the order tables containing all the placed order information:
● Sales_order => Main table, store ID, customer ID, status, state, price, qty, etc.,
● Sales_order_item => order products details, SKU, price, custom attributes
● Sales_order_address => billing and shipping address
● Sales_order_payment => payment method, amount and other payment info
● Sales_order_status_history => stores each process of the order in each row
like order, invoice, shipping, credit memo and cancel
● Sales_order_status_label => order status and label for each store ID
Sales Order (Cntd)
● Sales_order_status => Basic order status names and labels
● Sales_order_status_state => mapped status and state
● sales_order_aggregated_created
● sales_order_aggregated_updated
● Sales_order_grid => stores order imp info to display in the grid
● Sales_order_tax => store order tax percent, amount, tax code, title, etc.,
Order Status and State
States are used for internal purpose to maintain order flow and various order
actions like
States are new, pending, processing, pending payment, payment review, on hold,
cancelled, closed, complete
States are not displayed anywhere and only for internal purpose
Status used for display purpose. Each status belongs to a order state. Multiple
status can also be assigned to a single state.
For instance processing and suspected fraud are two status can be assigned to
state processing
Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version
Pages and Static
Blocks
Content pages and blocks
are stored in this tables:
● Cms_block
● Cms_block_store
● Cms_page
● cms_page_store
Admin
Admin user information are stored in these tables:
● Admin_user
● Admin_user_session
● Admin_passwords
● Admin_system_messages
● adminnotification_inbox tables
● When new admin user is created from admin or while installation, the admin
user details are stored in this tables.
● Authorization_rule and authorization_role are two tables used to store access
level for admin users
Customer
Tables related to customer/visitor prefixed with “customer_”
Al the information about the customer is stored in these tables:
● Customer_entity => main customer table
● customer_entity_datetime
● customer_entity_decimal
● customer_entity_int
● customer_entity_text
● customer_entity_varchar
● Customer_visitor => to store website visitor data like session ID, last visit time
and customer ID if the visitor is customer
Customer entity attribute tables
Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version
Customer Address
● customer_address_entity
● Customer_address_entity_datetime, customer_address_entity_decimal,
customer_address_entity_int, customer_address_entity_text,
customer_address_entity_varchar => Customer address entity attribute tables
● Customer_eav_attribute => Has all the eav attribute data for customer
● customer_eav_attribute_website
● Customer_form_attribute => define in which form which attributes are required.
Eg. which fields to values in checkout shipping method and admin customer
form
● Customer_grid_flat => used to display customer information in the admin grid
view
● customer_group
Wishlist
Store Configuration
Core_config_data is a main table has the store configuration values.
Independent table with some values are loaded from the XML files.
On update add entry in the table.
Cache and Index
Indexing details are stored in indexer_state table.
Useful to know when indexing stuck in the middle.
Just update the status to valid and run the reindex command
php bin/magento indexer:reindex
Cache configurations are loaded from app/etc/env.php file
Indexer Optimization
replica -> prevent dead and wait locks caused by read/write collisions
Concurrent full reindex and navigating to category, search pages and user layered
navigation filters with price filters.
● catalog_category_product_index_replica
● catalog_product_index_eav_decimal_replica
● catalog_product_index_eav_replica
● catalog_product_index_price_replica
● cataloginventory_stock_status_replica
● catalogrule_group_website_replica
● catalogrule_product_price_replica
● catalogrule_product_replica
_idx and _tmp suffixed tables
Used for indexation to prepare new data and are truncated
afterwards.
Modules
● Installed modules names and its schema and data versions are stored in
setup_module table.
● Module enable and disable information is stored in app/etc/config.php file.
● All the modules are declared in this config file.
Crons
Cron_schedule table lists
all the cron, which ran
before with executed and
response messages.
Cron table also has
information about the
cron scheduled for future.
Newsletter
url_rewrite
Search, tablerate & widget
Search_query table stores the search terms, number of results, store ID, etc.,
Shipping_tablerate table has the information on table rates, destination country ID,
region ID, dest_zip
Widget related tables are:
● widget
● Widget_instance
● Widget_instance_page
● widget_instance_page_layout
?

More Related Content

What's hot (20)

PDF
Magento 2 Design Patterns
Max Pronko
 
PPT
Oracle Forms : Validation Triggers
Sekhar Byna
 
PPT
Oracle Forms :Window and Canvases
Sekhar Byna
 
PPT
Oracle Forms Triggers
Sekhar Byna
 
PPT
Oracle Forms Creation-List of Values (LOV)
Sekhar Byna
 
PDF
Looking ahead at PostgreSQL 15
Jonathan Katz
 
DOCX
O2C Tables
Anil Kumar
 
PDF
PostgreSQL HA
haroonm
 
PPT
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
PDF
2 ways to get total sum of interactive grid column oracle apex ontoor blogs
sulimankareem
 
PDF
PromQL Deep Dive - The Prometheus Query Language
Weaveworks
 
PPTX
Achieving High Availability in PostgreSQL
Mydbops
 
PDF
Introduction to SQL Server Security
Jason Strate
 
DOC
Oracle glossary
shravan kumar chelika
 
PPT
Oracle Forms : Multiple Forms
Sekhar Byna
 
PPTX
eCommerce with Magento
TLLMN
 
PDF
Postgresql database administration volume 1
Federico Campoli
 
PDF
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
PDF
E-RETAIL SYSTEM_FINAL
surya singh
 
PDF
WMS_RULE.PDF
Samir Mahapatra
 
Magento 2 Design Patterns
Max Pronko
 
Oracle Forms : Validation Triggers
Sekhar Byna
 
Oracle Forms :Window and Canvases
Sekhar Byna
 
Oracle Forms Triggers
Sekhar Byna
 
Oracle Forms Creation-List of Values (LOV)
Sekhar Byna
 
Looking ahead at PostgreSQL 15
Jonathan Katz
 
O2C Tables
Anil Kumar
 
PostgreSQL HA
haroonm
 
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
2 ways to get total sum of interactive grid column oracle apex ontoor blogs
sulimankareem
 
PromQL Deep Dive - The Prometheus Query Language
Weaveworks
 
Achieving High Availability in PostgreSQL
Mydbops
 
Introduction to SQL Server Security
Jason Strate
 
Oracle glossary
shravan kumar chelika
 
Oracle Forms : Multiple Forms
Sekhar Byna
 
eCommerce with Magento
TLLMN
 
Postgresql database administration volume 1
Federico Campoli
 
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
E-RETAIL SYSTEM_FINAL
surya singh
 
WMS_RULE.PDF
Samir Mahapatra
 

Similar to Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version (20)

PDF
Electronic Store in Model Driven App.pdf
Varun Sisodiya
 
PPTX
Magento 2 Customer Segment
Landofcoder
 
PPTX
Sales and inventory management
Rohit Gupta
 
PDF
Ecommerce as an Engine
stephskardal
 
PPTX
E-Bazaar
ayanthi1
 
DOCX
Inventory management system
AkshitGupta124
 
DOCX
Inventory management system
Ashrafee rakhi
 
PPT
E-Commerce Shopping using MERN Stack where different modules are present
jatinraor66
 
PPT
E-Commerce Shopping for developing a shopping ecommerce site
jatinraor66
 
PDF
Shopping Campaigns and AdWords API
marcwan
 
DOCX
How to Create Module to Track Affiliate Conversions?
damienwoods
 
PDF
Oracle R12 Apps - Order Management Tables & Descriptions
Boopathy CS
 
PDF
54188703 i proc-catalog
obulreddy biyyam
 
PDF
Team project - Data visualization on Olist company data
Manasa Damera
 
PDF
Project+team+1 slides (2)
Vijay Pappu, Ph.D.
 
PPTX
Magento 2 A/ B Testing Extension
Webkul Software Pvt. Ltd.
 
PPTX
Master data in mm
Jaures Magloire N. Ambe
 
DOCX
Plywood Virtual marketing system e commerce
priyanshudubey58463
 
PPTX
Report Actions In Odoo 17 - Odoo 17 Slides
Celine George
 
PPTX
How to Add Pagination in Website portal in Odoo
Celine George
 
Electronic Store in Model Driven App.pdf
Varun Sisodiya
 
Magento 2 Customer Segment
Landofcoder
 
Sales and inventory management
Rohit Gupta
 
Ecommerce as an Engine
stephskardal
 
E-Bazaar
ayanthi1
 
Inventory management system
AkshitGupta124
 
Inventory management system
Ashrafee rakhi
 
E-Commerce Shopping using MERN Stack where different modules are present
jatinraor66
 
E-Commerce Shopping for developing a shopping ecommerce site
jatinraor66
 
Shopping Campaigns and AdWords API
marcwan
 
How to Create Module to Track Affiliate Conversions?
damienwoods
 
Oracle R12 Apps - Order Management Tables & Descriptions
Boopathy CS
 
54188703 i proc-catalog
obulreddy biyyam
 
Team project - Data visualization on Olist company data
Manasa Damera
 
Project+team+1 slides (2)
Vijay Pappu, Ph.D.
 
Magento 2 A/ B Testing Extension
Webkul Software Pvt. Ltd.
 
Master data in mm
Jaures Magloire N. Ambe
 
Plywood Virtual marketing system e commerce
priyanshudubey58463
 
Report Actions In Odoo 17 - Odoo 17 Slides
Celine George
 
How to Add Pagination in Website portal in Odoo
Celine George
 
Ad

Recently uploaded (20)

PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Biography of Daniel Podor.pdf
Daniel Podor
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
From Code to Challenge: Crafting Skill-Based Games That Engage and Reward
aiyshauae
 
Ad

Magento 2 Database Tables, Schema, Main tables for main features of Magento 2.2.2 version

  • 1. Magento 2 Database Insight Get your hands dirty with database Version: Magento 2.2.2 Prepared By: Gideon Babu Presented By: Gideon & Mohan www.linkedin.com/in/gideon-babu/ www.linkedin.com/in/mohan-sg/
  • 2. Magento & Database ● Magento built on Relational Database Management System (RDBMS) ● Compatible with MySql, MariaDB 10.0+ and Percona 5.7 ● Requires MySQL 5.6 and better for M2.2 installation ● Utilizes an Entity-Attribute-Value (EAV) data model ● Database information are stored in app/etc/env.php file ● M2.2.2 has 338 tables
  • 3. Entity-Attribute-Model (EAV) ● Magento use EAV database model predominantly to store data. ● Entity type table name is eav_entity_type ● Eav_attribute holds all the attributes of customer, address, category, products, order, invoice and shipment ● Entity attributes are grouped in eav_attribute_group table ● Products have attribute set to store sets of attributes. Likewise every attribute is stores in atleast single attribute set and that is stored in eav_attribute_set table. ● Product swatch options are stored in eav_attribute_option_swatch table
  • 4. Catalog Category ● Tables related to catalog category prefixed with catalog_category ● All categories related information are stores in tables prefixed catalog_category ● Category information are stores on specific data type tables. For instance category name is of type varchar and so stores in catalog_category_entity_varchar. ● Category int values are stored in catalog_category_entity_int ● Products mapped to a category is stored in catalog_category_product
  • 5. Product Tables ● catalog_product_entity => main product table ● catalog_product_entity_varchar => Title & Description & URL ● catalog_product_website => Assign Product to Website ● catalog_product_entity_decimal => Product Price ● catalog_product_index_price => Assign All Group Wise Price ● catalog_category_product => Assign Product to Category ● catalog_product_entity_int => Status & Visibility ● cataloginventory_stock_item => For Inventory Quantity ● url_rewrite => For URL Rewrite ● eav_attribute => store ALL Attributes ● catalog_url_rewrite_product_category => For URL Rewrite
  • 6. Catalog Product ● 68 tables related to catalog products ● Child tables are with prefix catalog_product_entity_ ● catalog_product_entity_datetime => Product – date attribute are stored here. Eg: New From, New To ● catalog_product_entity_media_gallery => product images path, Thumb , small, etc., ● catalog_product_entity_media_gallery_value – Product image, product image position, title info & position of image info, etc., ● catalog_product_entity_tier_price – Product tier price ● catalog_product_entity_varchar – Product name, URL, image path, etc.
  • 8. Configurable and Grouped Configurable and grouped product information get it from below tables ● catalog_product_super_attribute ● catalog_product_super_attribute_label ● catalog_product_super_link
  • 9. Bundled Product Bundled product associated values from below table ● catalog_product_bundle_option ● Catalog_product_bundle_option_value ● catalog_product_bundle_price_index ● Catalog_product_bundle_selection ● Catalog_product_bundle_selection_price ● catalog_product_bundle_stock_index
  • 10. Downloadable Product Tables related to downloaded product information ● downloadable_link ● downloadable_link_price ● downloadable_link_purchased ● downloadable_link_purchased_item ● downloadable_link_title ● downloadable_sample ● downloadable_sample_title
  • 11. Related Products Related products information is stored in these tables: ● catalog_product_link ● catalog_product_link_attribute ● catalog_product_link_attribute_decimal ● catalog_product_link_attribute_int ● catalog_product_link_attribute_varchar ● catalog_product_link_type
  • 12. Product Custom Option Product custom option information will get from below tables ● catalog_product_option ● catalog_product_option_price ● catalog_product_option_title ● catalog_product_option_type_price ● catalog_product_option_type_title ● catalog_product_option_type_value
  • 13. Inventory, website and Alerts Product inventory information are stored in these tables: ● cataloginventory_stock ● cataloginventory_stock_item ● cataloginventory_stock_status – Currently Product is instock or out off stock Catalog_product_website stores data of which website the product belongs to. Product alerts are stored in product_alert_price and product_alert_stock tables
  • 14. Product Ratings Product ratings are stored in the tables below: ● rating ● rating_option ● rating_title ● rating_entity ● raing_option_vote_aggregated ● rating_option_vote ● rating_store
  • 15. Product Reviews Product reviews are stored in the tables below: ● review ● review_detail ● review_entity ● review_status ● review_store
  • 16. Shopping Cart / Cart Products in shopping carts are stored in these tables before they are converted into orders. ● Quote => each customer shopping cart is saved in a row in the quote main table ● Quote_item => each product holds each row in quote_item table ● Quote_address => billing and shipping address of the quote ● Quote_address_item => ship to multiple address as each item mapped to separate address ● Quote_item_option => Options of the product in the cart ● Quote_payment => payment information like payment method, cost, etc., ● Quote_shipping_rate => shipping cost, method, title, code
  • 18. Sales Order These are the order tables containing all the placed order information: ● Sales_order => Main table, store ID, customer ID, status, state, price, qty, etc., ● Sales_order_item => order products details, SKU, price, custom attributes ● Sales_order_address => billing and shipping address ● Sales_order_payment => payment method, amount and other payment info ● Sales_order_status_history => stores each process of the order in each row like order, invoice, shipping, credit memo and cancel ● Sales_order_status_label => order status and label for each store ID
  • 19. Sales Order (Cntd) ● Sales_order_status => Basic order status names and labels ● Sales_order_status_state => mapped status and state ● sales_order_aggregated_created ● sales_order_aggregated_updated ● Sales_order_grid => stores order imp info to display in the grid ● Sales_order_tax => store order tax percent, amount, tax code, title, etc.,
  • 20. Order Status and State States are used for internal purpose to maintain order flow and various order actions like States are new, pending, processing, pending payment, payment review, on hold, cancelled, closed, complete States are not displayed anywhere and only for internal purpose Status used for display purpose. Each status belongs to a order state. Multiple status can also be assigned to a single state. For instance processing and suspected fraud are two status can be assigned to state processing
  • 22. Pages and Static Blocks Content pages and blocks are stored in this tables: ● Cms_block ● Cms_block_store ● Cms_page ● cms_page_store
  • 23. Admin Admin user information are stored in these tables: ● Admin_user ● Admin_user_session ● Admin_passwords ● Admin_system_messages ● adminnotification_inbox tables ● When new admin user is created from admin or while installation, the admin user details are stored in this tables. ● Authorization_rule and authorization_role are two tables used to store access level for admin users
  • 24. Customer Tables related to customer/visitor prefixed with “customer_” Al the information about the customer is stored in these tables: ● Customer_entity => main customer table ● customer_entity_datetime ● customer_entity_decimal ● customer_entity_int ● customer_entity_text ● customer_entity_varchar ● Customer_visitor => to store website visitor data like session ID, last visit time and customer ID if the visitor is customer Customer entity attribute tables
  • 26. Customer Address ● customer_address_entity ● Customer_address_entity_datetime, customer_address_entity_decimal, customer_address_entity_int, customer_address_entity_text, customer_address_entity_varchar => Customer address entity attribute tables ● Customer_eav_attribute => Has all the eav attribute data for customer ● customer_eav_attribute_website ● Customer_form_attribute => define in which form which attributes are required. Eg. which fields to values in checkout shipping method and admin customer form ● Customer_grid_flat => used to display customer information in the admin grid view ● customer_group
  • 28. Store Configuration Core_config_data is a main table has the store configuration values. Independent table with some values are loaded from the XML files. On update add entry in the table.
  • 29. Cache and Index Indexing details are stored in indexer_state table. Useful to know when indexing stuck in the middle. Just update the status to valid and run the reindex command php bin/magento indexer:reindex Cache configurations are loaded from app/etc/env.php file
  • 30. Indexer Optimization replica -> prevent dead and wait locks caused by read/write collisions Concurrent full reindex and navigating to category, search pages and user layered navigation filters with price filters. ● catalog_category_product_index_replica ● catalog_product_index_eav_decimal_replica ● catalog_product_index_eav_replica ● catalog_product_index_price_replica ● cataloginventory_stock_status_replica ● catalogrule_group_website_replica ● catalogrule_product_price_replica ● catalogrule_product_replica
  • 31. _idx and _tmp suffixed tables Used for indexation to prepare new data and are truncated afterwards.
  • 32. Modules ● Installed modules names and its schema and data versions are stored in setup_module table. ● Module enable and disable information is stored in app/etc/config.php file. ● All the modules are declared in this config file.
  • 33. Crons Cron_schedule table lists all the cron, which ran before with executed and response messages. Cron table also has information about the cron scheduled for future.
  • 36. Search, tablerate & widget Search_query table stores the search terms, number of results, store ID, etc., Shipping_tablerate table has the information on table rates, destination country ID, region ID, dest_zip Widget related tables are: ● widget ● Widget_instance ● Widget_instance_page ● widget_instance_page_layout
  • 37. ?

Editor's Notes

  • #3: https://en.wikipedia.org/wiki/Relational_database_management_system
  • #4: Values of customer, address, category, products, order, invoice, shipment is categorised as entity type and stored in