3
12.89 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
753011
765264
798582
620791
802508
790368
805668
759420
757548
676850
779135
536256
431078
543413
661960
649130
477742
636053
522132
679025
633461
805601
634211
518456
649218
649216
637125
522361
598118
643125
811628
528098
533531
543422
712992
621722
631968
799603
565541
820617
465517
393526
396891
480842
464599
386765
543418
607477
770877
387599
401095
428302
445039
446518
472503
472518
459565
451262
447458
425878
413827
388712
452082
503419
]
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 (753011 , 765264 , 798582 , 620791 , 802508 , 790368 , 805668 , 759420 , 757548 , 676850 , 779135 , 536256 , 431078 , 543413 , 661960 , 649130 , 477742 , 636053 , 522132 , 679025 , 633461 , 805601 , 634211 , 518456 , 649218 , 649216 , 637125 , 522361 , 598118 , 643125 , 811628 , 528098 , 533531 , 543422 , 712992 , 621722 , 631968 , 799603 , 565541 , 820617 , 465517 , 393526 , 396891 , 480842 , 464599 , 386765 , 543418 , 607477 , 770877 , 387599 , 401095 , 428302 , 445039 , 446518 , 472503 , 472518 , 459565 , 451262 , 447458 , 425878 , 413827 , 388712 , 452082 , 503419 );
Copy
4
2.75 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
386765
387599
388712
393526
396891
401095
413827
425878
428302
431078
445039
446518
447458
451262
452082
459565
464599
465517
472503
472518
477742
480842
503419
518456
522132
522361
528098
533531
536256
543413
543418
543422
565541
598118
607477
620791
621722
631968
633461
634211
636053
637125
643125
649130
649216
649218
661960
676850
679025
712992
753011
757548
759420
765264
770877
779135
790368
798582
799603
802508
805601
805668
811628
820617
]
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 (386765 , 387599 , 388712 , 393526 , 396891 , 401095 , 413827 , 425878 , 428302 , 431078 , 445039 , 446518 , 447458 , 451262 , 452082 , 459565 , 464599 , 465517 , 472503 , 472518 , 477742 , 480842 , 503419 , 518456 , 522132 , 522361 , 528098 , 533531 , 536256 , 543413 , 543418 , 543422 , 565541 , 598118 , 607477 , 620791 , 621722 , 631968 , 633461 , 634211 , 636053 , 637125 , 643125 , 649130 , 649216 , 649218 , 661960 , 676850 , 679025 , 712992 , 753011 , 757548 , 759420 , 765264 , 770877 , 779135 , 790368 , 798582 , 799603 , 802508 , 805601 , 805668 , 811628 , 820617 );
Copy
5
73.97 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
386765
387599
388712
393526
396891
401095
413827
425878
428302
431078
445039
446518
447458
451262
452082
459565
464599
465517
472503
472518
477742
480842
503419
518456
522132
522361
528098
533531
536256
543413
543418
543422
565541
598118
607477
620791
621722
631968
633461
634211
636053
637125
643125
649130
649216
649218
661960
676850
679025
712992
753011
757548
759420
765264
770877
779135
790368
798582
799603
802508
805601
805668
811628
820617
]
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 (386765 , 387599 , 388712 , 393526 , 396891 , 401095 , 413827 , 425878 , 428302 , 431078 , 445039 , 446518 , 447458 , 451262 , 452082 , 459565 , 464599 , 465517 , 472503 , 472518 , 477742 , 480842 , 503419 , 518456 , 522132 , 522361 , 528098 , 533531 , 536256 , 543413 , 543418 , 543422 , 565541 , 598118 , 607477 , 620791 , 621722 , 631968 , 633461 , 634211 , 636053 , 637125 , 643125 , 649130 , 649216 , 649218 , 661960 , 676850 , 679025 , 712992 , 753011 , 757548 , 759420 , 765264 , 770877 , 779135 , 790368 , 798582 , 799603 , 802508 , 805601 , 805668 , 811628 , 820617 );
Copy