SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
4.
“Master”Data
items
id
name
description
shipping_payer
shipping_method
condition
category_id
brand_id
...
payer
id
name
created
updated
...
method
id
name
created
updated
...
id
name
created
updated
...
condition
categories
id
name
disp_order
parent_id
created
updated
...
brands
id
name
disp_order
pronunciation
created
updated
...
5.
Some time Master
Data cause N+1
• SELECT with JOIN
• Cache in File/Memory/Memcached
• Embed in PHP source code
17.
Result
$ php bench.php
#1-2 in 1374881.1188811 get/sec
#2-2 in 355409.33227884 get/sec
Seems Big speed down, but keeps fast enough.
Does not impact real application