d o c k e r   c o m p o s e   - - e n v - f i l e   . e n v   e x e c   d b   p s q l   - U   m e s s e n g e r   - d   m e s s e n g e r   - c   " B E G I N ;   D R O P   I N D E X   i d x _ m e s s a g e s _ c h a t _ c r e a t e d _ a s c _ i d ;   E X P L A I N   ( A N A L Y Z E ,   B U F F E R S )   S E L E C T   m . i d ,   m . c h a t _ i d ,   m . s e n d e r _ i d ,   m . t e x t ,   m . c r e a t e d _ a t   F R O M   m e s s a g e s   m   W H E R E   m . c h a t _ i d   =   ' 2 2 2 2 2 2 2 2 - 2 2 2 2 - 4 2 2 2 - 8 2 2 2 - 2 2 2 2 2 2 2 2 2 2 2 2 '   O R D E R   B Y   m . c r e a t e d _ a t   A S C ,   m . i d   A S C   L I M I T   5 0 ;   R O L L B A C K ; "   2 > & 1   |   T e e - O b j e c t   " $ E V 4 \ 1 4 - e x p l a i n - n o - i n d e x . t x t " 
 
 
 
 
 
 
 
 B E G I N 
 
 D R O P   I N D E X 
 
                                                                                                                   Q U E R Y   P L A N                                                                                                                   
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
   L i m i t     ( c o s t = 7 0 4 . 3 3 . . 7 0 4 . 4 6   r o w s = 5 0   w i d t h = 1 6 8 )   ( a c t u a l   t i m e = 2 . 3 9 8 . . 2 . 4 0 4   r o w s = 5 0   l o o p s = 1 ) 
 
       B u f f e r s :   s h a r e d   h i t = 2 5 3 
 
       - >     S o r t     ( c o s t = 7 0 4 . 3 3 . . 7 2 9 . 3 3   r o w s = 1 0 0 0 0   w i d t h = 1 6 8 )   ( a c t u a l   t i m e = 2 . 3 9 7 . . 2 . 4 0 0   r o w s = 5 0   l o o p s = 1 ) 
 
                   S o r t   K e y :   c r e a t e d _ a t ,   i d 
 
                   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 :   4 7 k B 
 
                   B u f f e r s :   s h a r e d   h i t = 2 5 3 
 
                   - >     S e q   S c a n   o n   m e s s a g e s   m     ( c o s t = 0 . 0 0 . . 3 7 2 . 1 4   r o w s = 1 0 0 0 0   w i d t h = 1 6 8 )   ( a c t u a l   t i m e = 0 . 0 1 0 . . 1 . 5 5 1   r o w s = 1 0 0 0 0   l o o p s = 1 ) 
 
                               F i l t e r :   ( c h a t _ i d   =   ' 2 2 2 2 2 2 2 2 - 2 2 2 2 - 4 2 2 2 - 8 2 2 2 - 2 2 2 2 2 2 2 2 2 2 2 2 ' : : u u i d ) 
 
                               R o w s   R e m o v e d   b y   F i l t e r :   1 1 
 
                               B u f f e r s :   s h a r e d   h i t = 2 4 7 
 
   P l a n n i n g : 
 
       B u f f e r s :   s h a r e d   h i t = 7 9 
 
   P l a n n i n g   T i m e :   0 . 4 5 3   m s 
 
   E x e c u t i o n   T i m e :   2 . 4 5 6   m s 
 
 ( 1 4   r o w s ) 
 
 
 
 R O L L B A C K 
 
 