3
12.69 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
649920
801978
637128
773467
606515
705794
807549
619168
775931
540306
793472
683963
548607
807554
741279
670949
748530
708720
650802
598606
540656
649114
499543
484813
678942
696951
637033
395621
400932
814511
756405
590751
420760
583670
726301
550085
609682
447759
536787
474766
617408
630221
647877
670239
531115
548258
542975
650767
600290
523567
416772
716220
599856
467613
622402
432077
530030
810109
428276
647837
445471
419627
530696
544840
599966
421164
539203
486336
634230
641413
640793
486596
558186
526203
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (649920 , 801978 , 637128 , 773467 , 606515 , 705794 , 807549 , 619168 , 775931 , 540306 , 793472 , 683963 , 548607 , 807554 , 741279 , 670949 , 748530 , 708720 , 650802 , 598606 , 540656 , 649114 , 499543 , 484813 , 678942 , 696951 , 637033 , 395621 , 400932 , 814511 , 756405 , 590751 , 420760 , 583670 , 726301 , 550085 , 609682 , 447759 , 536787 , 474766 , 617408 , 630221 , 647877 , 670239 , 531115 , 548258 , 542975 , 650767 , 600290 , 523567 , 416772 , 716220 , 599856 , 467613 , 622402 , 432077 , 530030 , 810109 , 428276 , 647837 , 445471 , 419627 , 530696 , 544840 , 599966 , 421164 , 539203 , 486336 , 634230 , 641413 , 640793 , 486596 , 558186 , 526203 );
Copy
4
2.36 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
395621
400932
416772
419627
420760
421164
428276
432077
445471
447759
467613
474766
484813
486336
486596
499543
523567
526203
530030
530696
531115
536787
539203
540306
540656
542975
544840
548258
548607
550085
558186
583670
590751
598606
599856
599966
600290
606515
609682
617408
619168
622402
630221
634230
637033
637128
640793
641413
647837
647877
649114
649920
650767
650802
670239
670949
678942
683963
696951
705794
708720
716220
726301
741279
748530
756405
773467
775931
793472
801978
807549
807554
810109
814511
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (395621 , 400932 , 416772 , 419627 , 420760 , 421164 , 428276 , 432077 , 445471 , 447759 , 467613 , 474766 , 484813 , 486336 , 486596 , 499543 , 523567 , 526203 , 530030 , 530696 , 531115 , 536787 , 539203 , 540306 , 540656 , 542975 , 544840 , 548258 , 548607 , 550085 , 558186 , 583670 , 590751 , 598606 , 599856 , 599966 , 600290 , 606515 , 609682 , 617408 , 619168 , 622402 , 630221 , 634230 , 637033 , 637128 , 640793 , 641413 , 647837 , 647877 , 649114 , 649920 , 650767 , 650802 , 670239 , 670949 , 678942 , 683963 , 696951 , 705794 , 708720 , 716220 , 726301 , 741279 , 748530 , 756405 , 773467 , 775931 , 793472 , 801978 , 807549 , 807554 , 810109 , 814511 );
Copy
5
81.74 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
395621
400932
416772
419627
420760
421164
428276
432077
445471
447759
467613
474766
484813
486336
486596
499543
523567
526203
530030
530696
531115
536787
539203
540306
540656
542975
544840
548258
548607
550085
558186
583670
590751
598606
599856
599966
600290
606515
609682
617408
619168
622402
630221
634230
637033
637128
640793
641413
647837
647877
649114
649920
650767
650802
670239
670949
678942
683963
696951
705794
708720
716220
726301
741279
748530
756405
773467
775931
793472
801978
807549
807554
810109
814511
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (395621 , 400932 , 416772 , 419627 , 420760 , 421164 , 428276 , 432077 , 445471 , 447759 , 467613 , 474766 , 484813 , 486336 , 486596 , 499543 , 523567 , 526203 , 530030 , 530696 , 531115 , 536787 , 539203 , 540306 , 540656 , 542975 , 544840 , 548258 , 548607 , 550085 , 558186 , 583670 , 590751 , 598606 , 599856 , 599966 , 600290 , 606515 , 609682 , 617408 , 619168 , 622402 , 630221 , 634230 , 637033 , 637128 , 640793 , 641413 , 647837 , 647877 , 649114 , 649920 , 650767 , 650802 , 670239 , 670949 , 678942 , 683963 , 696951 , 705794 , 708720 , 716220 , 726301 , 741279 , 748530 , 756405 , 773467 , 775931 , 793472 , 801978 , 807549 , 807554 , 810109 , 814511 );
Copy