                                                                                                                        Q U E R Y   P L A N                                                                                                                           
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 4 . 8 0 . . 4 . 8 2   r o w s = 5   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 6 1 6 . . 0 . 6 2 1   r o w s = 4   l o o p s = 1 ) 
 
       S o r t   K e y :   ( s u m ( ( ( o i . q u a n t i t y ) : : n u m e r i c   *   o i . u n i t _ p r i c e ) ) )   D E S C 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 6 
 
       - >     H a s h A g g r e g a t e     ( c o s t = 4 . 6 8 . . 4 . 7 5   r o w s = 5   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 5 0 1 . . 0 . 5 0 9   r o w s = 4   l o o p s = 1 ) 
 
                   G r o u p   K e y :   c . i d 
 
                   B a t c h e s :   1     M e m o r y   U s a g e :   2 4 k B 
 
                   B u f f e r s :   s h a r e d   h i t = 3 
 
                   - >     H a s h   J o i n     ( c o s t = 2 . 5 6 . . 4 . 2 8   r o w s = 4 0   w i d t h = 3 7 )   ( a c t u a l   t i m e = 0 . 2 2 1 . . 0 . 3 2 0   r o w s = 4 0   l o o p s = 1 ) 
 
                               H a s h   C o n d :   ( o . c u s t o m e r _ i d   =   c . i d ) 
 
                               B u f f e r s :   s h a r e d   h i t = 3 
 
                               - >     H a s h   J o i n     ( c o s t = 1 . 4 5 . . 2 . 9 8   r o w s = 4 0   w i d t h = 2 6 )   ( a c t u a l   t i m e = 0 . 1 1 7 . . 0 . 1 7 8   r o w s = 4 0   l o o p s = 1 ) 
 
                                           H a s h   C o n d :   ( o i . o r d e r _ i d   =   o . i d ) 
 
                                           B u f f e r s :   s h a r e d   h i t = 2 
 
                                           - >     S e q   S c a n   o n   o r d e r _ i t e m s   o i     ( c o s t = 0 . 0 0 . . 1 . 4 0   r o w s = 4 0   w i d t h = 2 6 )   ( a c t u a l   t i m e = 0 . 0 2 9 . . 0 . 0 4 0   r o w s = 4 0   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                           - >     H a s h     ( c o s t = 1 . 2 0 . . 1 . 2 0   r o w s = 2 0   w i d t h = 3 2 )   ( a c t u a l   t i m e = 0 . 0 5 1 . . 0 . 0 5 1   r o w s = 2 0   l o o p s = 1 ) 
 
                                                       B u c k e t s :   1 0 2 4     B a t c h e s :   1     M e m o r y   U s a g e :   1 0 k B 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                                       - >     S e q   S c a n   o n   o r d e r s   o     ( c o s t = 0 . 0 0 . . 1 . 2 0   r o w s = 2 0   w i d t h = 3 2 )   ( a c t u a l   t i m e = 0 . 0 1 7 . . 0 . 0 2 4   r o w s = 2 0   l o o p s = 1 ) 
 
                                                                   B u f f e r s :   s h a r e d   h i t = 1 
 
                               - >     H a s h     ( c o s t = 1 . 0 5 . . 1 . 0 5   r o w s = 5   w i d t h = 2 7 )   ( a c t u a l   t i m e = 0 . 0 8 0 . . 0 . 0 8 1   r o w s = 5   l o o p s = 1 ) 
 
                                           B u c k e t s :   1 0 2 4     B a t c h e s :   1     M e m o r y   U s a g e :   9 k B 
 
                                           B u f f e r s :   s h a r e d   h i t = 1 
 
                                           - >     S e q   S c a n   o n   c u s t o m e r s   c     ( c o s t = 0 . 0 0 . . 1 . 0 5   r o w s = 5   w i d t h = 2 7 )   ( a c t u a l   t i m e = 0 . 0 4 5 . . 0 . 0 4 8   r o w s = 5   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 2 3 1 
 
   P l a n n i n g   T i m e :   1 2 . 5 7 2   m s 
 
   E x e c u t i o n   T i m e :   1 . 0 0 8   m s 
 
 ( 3 0   r o w s ) 
 
 
 
                                                                                                                           Q U E R Y   P L A N                                                                                                                             
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   L i m i t     ( c o s t = 3 . 2 0 . . 3 . 2 1   r o w s = 3   w i d t h = 2 3 )   ( a c t u a l   t i m e = 0 . 2 3 9 . . 0 . 2 4 2   r o w s = 3   l o o p s = 1 ) 
 
       B u f f e r s :   s h a r e d   h i t = 1 1 
 
       - >     S o r t     ( c o s t = 3 . 2 0 . . 3 . 2 3   r o w s = 1 0   w i d t h = 2 3 )   ( a c t u a l   t i m e = 0 . 2 3 4 . . 0 . 2 3 6   r o w s = 3   l o o p s = 1 ) 
 
                   S o r t   K e y :   ( s u m ( o i . q u a n t i t y ) )   D E S C ,   p . n a m e 
 
                   S o r t   M e t h o d :   t o p - N   h e a p s o r t     M e m o r y :   2 5 k B 
 
                   B u f f e r s :   s h a r e d   h i t = 1 1 
 
                   - >     H a s h A g g r e g a t e     ( c o s t = 2 . 9 7 . . 3 . 0 7   r o w s = 1 0   w i d t h = 2 3 )   ( a c t u a l   t i m e = 0 . 1 1 6 . . 0 . 1 2 0   r o w s = 1 0   l o o p s = 1 ) 
 
                               G r o u p   K e y :   p . n a m e 
 
                               B a t c h e s :   1     M e m o r y   U s a g e :   2 4 k B 
 
                               B u f f e r s :   s h a r e d   h i t = 2 
 
                               - >     H a s h   J o i n     ( c o s t = 1 . 2 3 . . 2 . 7 7   r o w s = 4 0   w i d t h = 1 9 )   ( a c t u a l   t i m e = 0 . 0 6 2 . . 0 . 0 8 2   r o w s = 4 0   l o o p s = 1 ) 
 
                                           H a s h   C o n d :   ( o i . p r o d u c t _ i d   =   p . i d ) 
 
                                           B u f f e r s :   s h a r e d   h i t = 2 
 
                                           - >     S e q   S c a n   o n   o r d e r _ i t e m s   o i     ( c o s t = 0 . 0 0 . . 1 . 4 0   r o w s = 4 0   w i d t h = 2 0 )   ( a c t u a l   t i m e = 0 . 0 2 1 . . 0 . 0 2 5   r o w s = 4 0   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                           - >     H a s h     ( c o s t = 1 . 1 0 . . 1 . 1 0   r o w s = 1 0   w i d t h = 3 1 )   ( a c t u a l   t i m e = 0 . 0 2 8 . . 0 . 0 2 8   r o w s = 1 0   l o o p s = 1 ) 
 
                                                       B u c k e t s :   1 0 2 4     B a t c h e s :   1     M e m o r y   U s a g e :   9 k B 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                                       - >     S e q   S c a n   o n   p r o d u c t s   p     ( c o s t = 0 . 0 0 . . 1 . 1 0   r o w s = 1 0   w i d t h = 3 1 )   ( a c t u a l   t i m e = 0 . 0 1 2 . . 0 . 0 1 4   r o w s = 1 0   l o o p s = 1 ) 
 
                                                                   B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 6 6 
 
   P l a n n i n g   T i m e :   4 . 7 0 8   m s 
 
   E x e c u t i o n   T i m e :   0 . 3 3 4   m s 
 
 ( 2 4   r o w s ) 
 
 
 
                                                                                                           Q U E R Y   P L A N                                                                                                             
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 2 . 5 5 . . 2 . 5 5   r o w s = 1   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 1 2 2 . . 0 . 1 2 5   r o w s = 2   l o o p s = 1 ) 
 
       S o r t   K e y :   c . n a m e 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 2 
 
       - >     H a s h   A n t i   J o i n     ( c o s t = 1 . 4 4 . . 2 . 5 4   r o w s = 1   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 0 9 2 . . 0 . 0 9 8   r o w s = 2   l o o p s = 1 ) 
 
                   H a s h   C o n d :   ( c . i d   =   o . c u s t o m e r _ i d ) 
 
                   B u f f e r s :   s h a r e d   h i t = 2 
 
                   - >     S e q   S c a n   o n   c u s t o m e r s   c     ( c o s t = 0 . 0 0 . . 1 . 0 5   r o w s = 5   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 0 2 3 . . 0 . 0 2 4   r o w s = 5   l o o p s = 1 ) 
 
                               B u f f e r s :   s h a r e d   h i t = 1 
 
                   - >     H a s h     ( c o s t = 1 . 3 5 . . 1 . 3 5   r o w s = 7   w i d t h = 1 6 )   ( a c t u a l   t i m e = 0 . 0 5 1 . . 0 . 0 5 1   r o w s = 6   l o o p s = 1 ) 
 
                               B u c k e t s :   1 0 2 4     B a t c h e s :   1     M e m o r y   U s a g e :   9 k B 
 
                               B u f f e r s :   s h a r e d   h i t = 1 
 
                               - >     S e q   S c a n   o n   o r d e r s   o     ( c o s t = 0 . 0 0 . . 1 . 3 5   r o w s = 7   w i d t h = 1 6 )   ( a c t u a l   t i m e = 0 . 0 2 5 . . 0 . 0 3 9   r o w s = 6   l o o p s = 1 ) 
 
                                           F i l t e r :   ( c r e a t e d _ a t   > =   ( n o w ( )   -   ' 3 0   d a y s ' : : i n t e r v a l ) ) 
 
                                           R o w s   R e m o v e d   b y   F i l t e r :   1 4 
 
                                           B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 2 0 
 
   P l a n n i n g   T i m e :   0 . 5 4 2   m s 
 
   E x e c u t i o n   T i m e :   0 . 1 6 8   m s 
 
 ( 2 0   r o w s ) 
 
 
 
                                                                                                 Q U E R Y   P L A N                                                                                                   
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 1 . 1 4 . . 1 . 1 4   r o w s = 1   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 0 4 5 . . 0 . 0 4 6   r o w s = 5   l o o p s = 1 ) 
 
       S o r t   K e y :   n a m e 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 1 
 
       - >     S e q   S c a n   o n   p r o d u c t s   p     ( c o s t = 0 . 0 0 . . 1 . 1 2   r o w s = 1   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 0 1 8 . . 0 . 0 2 4   r o w s = 5   l o o p s = 1 ) 
 
                   F i l t e r :   ( a t t r i b u t e s   @ >   ' { " c o l o r " :   " b l a c k " } ' : : j s o n b ) 
 
                   R o w s   R e m o v e d   b y   F i l t e r :   5 
 
                   B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 1 0 
 
   P l a n n i n g   T i m e :   0 . 1 8 5   m s 
 
   E x e c u t i o n   T i m e :   0 . 0 6 2   m s 
 
 ( 1 2   r o w s ) 
 
 
 
                                                                                                                         Q U E R Y   P L A N                                                                                                                           
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   W i n d o w A g g     ( c o s t = 4 . 4 1 . . 4 . 8 1   r o w s = 2 0   w i d t h = 1 0 4 )   ( a c t u a l   t i m e = 0 . 1 9 0 . . 0 . 1 9 9   r o w s = 5   l o o p s = 1 ) 
 
       B u f f e r s :   s h a r e d   h i t = 5 
 
       - >     S o r t     ( c o s t = 4 . 4 1 . . 4 . 4 6   r o w s = 2 0   w i d t h = 4 0 )   ( a c t u a l   t i m e = 0 . 1 4 6 . . 0 . 1 4 8   r o w s = 5   l o o p s = 1 ) 
 
                   S o r t   K e y :   ( d a t e _ t r u n c ( ' m o n t h ' : : t e x t ,   o . c r e a t e d _ a t ) ) 
 
                   S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
                   B u f f e r s :   s h a r e d   h i t = 5 
 
                   - >     H a s h A g g r e g a t e     ( c o s t = 3 . 4 8 . . 3 . 7 8   r o w s = 2 0   w i d t h = 4 0 )   ( a c t u a l   t i m e = 0 . 1 2 3 . . 0 . 1 2 7   r o w s = 5   l o o p s = 1 ) 
 
                               G r o u p   K e y :   d a t e _ t r u n c ( ' m o n t h ' : : t e x t ,   o . c r e a t e d _ a t ) 
 
                               B a t c h e s :   1     M e m o r y   U s a g e :   2 4 k B 
 
                               B u f f e r s :   s h a r e d   h i t = 2 
 
                               - >     H a s h   J o i n     ( c o s t = 1 . 4 5 . . 3 . 0 8   r o w s = 4 0   w i d t h = 1 8 )   ( a c t u a l   t i m e = 0 . 0 6 2 . . 0 . 0 8 9   r o w s = 4 0   l o o p s = 1 ) 
 
                                           H a s h   C o n d :   ( o i . o r d e r _ i d   =   o . i d ) 
 
                                           B u f f e r s :   s h a r e d   h i t = 2 
 
                                           - >     S e q   S c a n   o n   o r d e r _ i t e m s   o i     ( c o s t = 0 . 0 0 . . 1 . 4 0   r o w s = 4 0   w i d t h = 2 6 )   ( a c t u a l   t i m e = 0 . 0 1 8 . . 0 . 0 2 2   r o w s = 4 0   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                           - >     H a s h     ( c o s t = 1 . 2 0 . . 1 . 2 0   r o w s = 2 0   w i d t h = 2 4 )   ( a c t u a l   t i m e = 0 . 0 2 2 . . 0 . 0 2 2   r o w s = 2 0   l o o p s = 1 ) 
 
                                                       B u c k e t s :   1 0 2 4     B a t c h e s :   1     M e m o r y   U s a g e :   1 0 k B 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
                                                       - >     S e q   S c a n   o n   o r d e r s   o     ( c o s t = 0 . 0 0 . . 1 . 2 0   r o w s = 2 0   w i d t h = 2 4 )   ( a c t u a l   t i m e = 0 . 0 1 1 . . 0 . 0 1 4   r o w s = 2 0   l o o p s = 1 ) 
 
                                                                   B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 1 1 
 
   P l a n n i n g   T i m e :   0 . 3 3 5   m s 
 
   E x e c u t i o n   T i m e :   0 . 2 9 1   m s 
 
 ( 2 4   r o w s ) 
 
 
 
                                                                                       Q U E R Y   P L A N                                                                                         
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S e q   S c a n   o n   o r d e r s     ( c o s t = 0 . 0 0 . . 1 . 2 5   r o w s = 2   w i d t h = 3 3 )   ( a c t u a l   t i m e = 0 . 0 1 8 . . 0 . 0 2 1   r o w s = 2   l o o p s = 1 ) 
 
       F i l t e r :   ( ( s t a t u s ) : : t e x t   =   ' S H I P P E D ' : : t e x t ) 
 
       R o w s   R e m o v e d   b y   F i l t e r :   1 8 
 
       B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 3 
 
   P l a n n i n g   T i m e :   0 . 1 2 5   m s 
 
   E x e c u t i o n   T i m e :   0 . 0 3 9   m s 
 
 ( 8   r o w s ) 
 
 
 
                                                                                         Q U E R Y   P L A N                                                                                         
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S e q   S c a n   o n   o r d e r s     ( c o s t = 0 . 0 0 . . 1 . 4 0   r o w s = 1   w i d t h = 3 3 )   ( a c t u a l   t i m e = 0 . 0 2 0 . . 0 . 0 2 3   r o w s = 2   l o o p s = 1 ) 
 
       F i l t e r :   ( ( ( s t a t u s ) : : t e x t   =   ' P E N D I N G ' : : t e x t )   A N D   ( c r e a t e d _ a t   > =   ( n o w ( )   -   ' 6 0   d a y s ' : : i n t e r v a l ) ) ) 
 
       R o w s   R e m o v e d   b y   F i l t e r :   1 8 
 
       B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g   T i m e :   0 . 1 3 6   m s 
 
   E x e c u t i o n   T i m e :   0 . 0 3 5   m s 
 
 ( 6   r o w s ) 
 
 
 
 S E T 
 
                                                                                                                                                   Q U E R Y   P L A N                                                                                                                                                     
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 1 0 0 0 0 0 0 0 0 3 0 . 1 8 . . 1 0 0 0 0 0 0 0 0 3 0 . 2 0   r o w s = 5   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 7 3 3 . . 0 . 7 3 7   r o w s = 4   l o o p s = 1 ) 
 
       S o r t   K e y :   ( s u m ( ( ( o i . q u a n t i t y ) : : n u m e r i c   *   o i . u n i t _ p r i c e ) ) )   D E S C 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 1 1 
 
       - >     G r o u p A g g r e g a t e     ( c o s t = 1 0 0 0 0 0 0 0 0 0 0 . 2 8 . . 1 0 0 0 0 0 0 0 0 3 0 . 1 3   r o w s = 5   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 2 8 2 . . 0 . 7 1 9   r o w s = 4   l o o p s = 1 ) 
 
                   G r o u p   K e y :   c . i d 
 
                   B u f f e r s :   s h a r e d   h i t = 1 1 
 
                   - >     N e s t e d   L o o p     ( c o s t = 1 0 0 0 0 0 0 0 0 0 0 . 2 8 . . 1 0 0 0 0 0 0 0 0 2 9 . 6 6   r o w s = 4 0   w i d t h = 3 7 )   ( a c t u a l   t i m e = 0 . 0 8 9 . . 0 . 5 9 8   r o w s = 4 0   l o o p s = 1 ) 
 
                               J o i n   F i l t e r :   ( o . i d   =   o i . o r d e r _ i d ) 
 
                               R o w s   R e m o v e d   b y   J o i n   F i l t e r :   7 6 0 
 
                               B u f f e r s :   s h a r e d   h i t = 1 1 
 
                               - >     N e s t e d   L o o p     ( c o s t = 0 . 2 8 . . 1 6 . 1 6   r o w s = 2 0   w i d t h = 4 3 )   ( a c t u a l   t i m e = 0 . 0 4 5 . . 0 . 1 3 6   r o w s = 2 0   l o o p s = 1 ) 
 
                                           B u f f e r s :   s h a r e d   h i t = 1 0 
 
                                           - >     I n d e x   S c a n   u s i n g   i d x _ o r d e r s _ c u s t o m e r _ i d   o n   o r d e r s   o     ( c o s t = 0 . 1 4 . . 1 2 . 4 4   r o w s = 2 0   w i d t h = 3 2 )   ( a c t u a l   t i m e = 0 . 0 1 1 . . 0 . 0 2 9   r o w s = 2 0   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 2 
 
                                           - >     M e m o i z e     ( c o s t = 0 . 1 4 . . 0 . 7 6   r o w s = 1   w i d t h = 2 7 )   ( a c t u a l   t i m e = 0 . 0 0 4 . . 0 . 0 0 4   r o w s = 1   l o o p s = 2 0 ) 
 
                                                       C a c h e   K e y :   o . c u s t o m e r _ i d 
 
                                                       C a c h e   M o d e :   l o g i c a l 
 
                                                       H i t s :   1 6     M i s s e s :   4     E v i c t i o n s :   0     O v e r f l o w s :   0     M e m o r y   U s a g e :   1 k B 
 
                                                       B u f f e r s :   s h a r e d   h i t = 8 
 
                                                       - >     I n d e x   S c a n   u s i n g   c u s t o m e r s _ p k e y   o n   c u s t o m e r s   c     ( c o s t = 0 . 1 3 . . 0 . 7 5   r o w s = 1   w i d t h = 2 7 )   ( a c t u a l   t i m e = 0 . 0 1 0 . . 0 . 0 1 0   r o w s = 1   l o o p s = 4 ) 
 
                                                                   I n d e x   C o n d :   ( i d   =   o . c u s t o m e r _ i d ) 
 
                                                                   B u f f e r s :   s h a r e d   h i t = 8 
 
                               - >     M a t e r i a l i z e     ( c o s t = 1 0 0 0 0 0 0 0 0 0 0 . 0 0 . . 1 0 0 0 0 0 0 0 0 0 1 . 6 0   r o w s = 4 0   w i d t h = 2 6 )   ( a c t u a l   t i m e = 0 . 0 0 2 . . 0 . 0 0 8   r o w s = 4 0   l o o p s = 2 0 ) 
 
                                           B u f f e r s :   s h a r e d   h i t = 1 
 
                                           - >     S e q   S c a n   o n   o r d e r _ i t e m s   o i     ( c o s t = 1 0 0 0 0 0 0 0 0 0 0 . 0 0 . . 1 0 0 0 0 0 0 0 0 0 1 . 4 0   r o w s = 4 0   w i d t h = 2 6 )   ( a c t u a l   t i m e = 0 . 0 3 1 . . 0 . 0 4 7   r o w s = 4 0   l o o p s = 1 ) 
 
                                                       B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 1 4 
 
   P l a n n i n g   T i m e :   0 . 6 8 7   m s 
 
   E x e c u t i o n   T i m e :   1 . 0 9 0   m s 
 
 ( 3 1   r o w s ) 
 
 
 
                                                                                                                                     Q U E R Y   P L A N                                                                                                                                     
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 2 1 . 5 7 . . 2 1 . 5 8   r o w s = 1   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 1 0 0 . . 0 . 1 0 2   r o w s = 2   l o o p s = 1 ) 
 
       S o r t   K e y :   c . n a m e 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 1 1 
 
       - >     N e s t e d   L o o p   A n t i   J o i n     ( c o s t = 0 . 2 7 . . 2 1 . 5 6   r o w s = 1   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 0 5 0 . . 0 . 0 7 3   r o w s = 2   l o o p s = 1 ) 
 
                   B u f f e r s :   s h a r e d   h i t = 1 1 
 
                   - >     I n d e x   S c a n   u s i n g   c u s t o m e r s _ p k e y   o n   c u s t o m e r s   c     ( c o s t = 0 . 1 3 . . 1 2 . 2 1   r o w s = 5   w i d t h = 4 4 )   ( a c t u a l   t i m e = 0 . 0 2 0 . . 0 . 0 2 3   r o w s = 5   l o o p s = 1 ) 
 
                               B u f f e r s :   s h a r e d   h i t = 2 
 
                   - >     I n d e x   S c a n   u s i n g   i d x _ o r d e r s _ c u s t o m e r _ i d   o n   o r d e r s   o     ( c o s t = 0 . 1 4 . . 2 . 6 6   r o w s = 2   w i d t h = 1 6 )   ( a c t u a l   t i m e = 0 . 0 0 8 . . 0 . 0 0 8   r o w s = 1   l o o p s = 5 ) 
 
                               I n d e x   C o n d :   ( c u s t o m e r _ i d   =   c . i d ) 
 
                               F i l t e r :   ( c r e a t e d _ a t   > =   ( n o w ( )   -   ' 3 0   d a y s ' : : i n t e r v a l ) ) 
 
                               R o w s   R e m o v e d   b y   F i l t e r :   1 
 
                               B u f f e r s :   s h a r e d   h i t = 9 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 4 
 
   P l a n n i n g   T i m e :   0 . 7 4 7   m s 
 
   E x e c u t i o n   T i m e :   0 . 1 4 6   m s 
 
 ( 1 7   r o w s ) 
 
 
 
                                                                                                                             Q U E R Y   P L A N                                                                                                                               
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   S o r t     ( c o s t = 2 0 . 0 3 . . 2 0 . 0 3   r o w s = 1   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 1 0 7 . . 0 . 1 0 9   r o w s = 5   l o o p s = 1 ) 
 
       S o r t   K e y :   n a m e 
 
       S o r t   M e t h o d :   q u i c k s o r t     M e m o r y :   2 5 k B 
 
       B u f f e r s :   s h a r e d   h i t = 5 
 
       - >     B i t m a p   H e a p   S c a n   o n   p r o d u c t s   p     ( c o s t = 1 6 . 0 0 . . 2 0 . 0 2   r o w s = 1   w i d t h = 5 9 )   ( a c t u a l   t i m e = 0 . 0 7 2 . . 0 . 0 7 8   r o w s = 5   l o o p s = 1 ) 
 
                   R e c h e c k   C o n d :   ( a t t r i b u t e s   @ >   ' { " c o l o r " :   " b l a c k " } ' : : j s o n b ) 
 
                   H e a p   B l o c k s :   e x a c t = 1 
 
                   B u f f e r s :   s h a r e d   h i t = 5 
 
                   - >     B i t m a p   I n d e x   S c a n   o n   i d x _ p r o d u c t s _ a t t r i b u t e s     ( c o s t = 0 . 0 0 . . 1 6 . 0 0   r o w s = 1   w i d t h = 0 )   ( a c t u a l   t i m e = 0 . 0 6 3 . . 0 . 0 6 3   r o w s = 5   l o o p s = 1 ) 
 
                               I n d e x   C o n d :   ( a t t r i b u t e s   @ >   ' { " c o l o r " :   " b l a c k " } ' : : j s o n b ) 
 
                               B u f f e r s :   s h a r e d   h i t = 4 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 1 
 
   P l a n n i n g   T i m e :   0 . 1 1 2   m s 
 
   E x e c u t i o n   T i m e :   0 . 1 7 8   m s 
 
 ( 1 5   r o w s ) 
 
 
 
                                                                                                                 Q U E R Y   P L A N                                                                                                                   
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   I n d e x   S c a n   u s i n g   i d x _ o r d e r s _ s t a t u s   o n   o r d e r s     ( c o s t = 0 . 1 4 . . 8 . 1 7   r o w s = 2   w i d t h = 3 3 )   ( a c t u a l   t i m e = 0 . 0 3 4 . . 0 . 0 3 7   r o w s = 2   l o o p s = 1 ) 
 
       I n d e x   C o n d :   ( ( s t a t u s ) : : t e x t   =   ' S H I P P E D ' : : t e x t ) 
 
       B u f f e r s :   s h a r e d   h i t = 2 
 
   P l a n n i n g   T i m e :   0 . 1 7 2   m s 
 
   E x e c u t i o n   T i m e :   0 . 0 5 8   m s 
 
 ( 5   r o w s ) 
 
 
 
                                                                                                                             Q U E R Y   P L A N                                                                                                                               
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   I n d e x   S c a n   u s i n g   i d x _ o r d e r s _ p e n d i n g _ c r e a t e d _ a t   o n   o r d e r s     ( c o s t = 0 . 1 3 . . 8 . 1 5   r o w s = 1   w i d t h = 3 3 )   ( a c t u a l   t i m e = 0 . 0 2 7 . . 0 . 0 2 9   r o w s = 2   l o o p s = 1 ) 
 
       I n d e x   C o n d :   ( c r e a t e d _ a t   > =   ( n o w ( )   -   ' 6 0   d a y s ' : : i n t e r v a l ) ) 
 
       B u f f e r s :   s h a r e d   h i t = 5 
 
   P l a n n i n g   T i m e :   0 . 1 4 3   m s 
 
   E x e c u t i o n   T i m e :   0 . 0 4 5   m s 
 
 ( 5   r o w s ) 
 
 
 
 R E S E T 
 
 