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