3
22.51 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
397565
405458
382312
427643
603751
466000
533485
778610
309286
488786
355652
582203
552235
513251
492987
571049
507983
395655
409919
388990
465137
509188
429176
479923
455572
522068
522076
452791
390220
444396
639637
408845
445014
456257
560781
601142
472192
533120
539917
444424
484781
464840
467101
545788
452849
461088
418890
604994
524855
462373
548140
593965
467967
601511
601717
602594
492221
567798
578703
592005
588991
532531
554529
521074
566597
594105
515947
574700
533137
524836
486501
545300
449925
]
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 (397565 , 405458 , 382312 , 427643 , 603751 , 466000 , 533485 , 778610 , 309286 , 488786 , 355652 , 582203 , 552235 , 513251 , 492987 , 571049 , 507983 , 395655 , 409919 , 388990 , 465137 , 509188 , 429176 , 479923 , 455572 , 522068 , 522076 , 452791 , 390220 , 444396 , 639637 , 408845 , 445014 , 456257 , 560781 , 601142 , 472192 , 533120 , 539917 , 444424 , 484781 , 464840 , 467101 , 545788 , 452849 , 461088 , 418890 , 604994 , 524855 , 462373 , 548140 , 593965 , 467967 , 601511 , 601717 , 602594 , 492221 , 567798 , 578703 , 592005 , 588991 , 532531 , 554529 , 521074 , 566597 , 594105 , 515947 , 574700 , 533137 , 524836 , 486501 , 545300 , 449925 );
Copy
4
3.51 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
309286
355652
382312
388990
390220
395655
397565
405458
408845
409919
418890
427643
429176
444396
444424
445014
449925
452791
452849
455572
456257
461088
462373
464840
465137
466000
467101
467967
472192
479923
484781
486501
488786
492221
492987
507983
509188
513251
515947
521074
522068
522076
524836
524855
532531
533120
533137
533485
539917
545300
545788
548140
552235
554529
560781
566597
567798
571049
574700
578703
582203
588991
592005
593965
594105
601142
601511
601717
602594
603751
604994
639637
778610
]
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 (309286 , 355652 , 382312 , 388990 , 390220 , 395655 , 397565 , 405458 , 408845 , 409919 , 418890 , 427643 , 429176 , 444396 , 444424 , 445014 , 449925 , 452791 , 452849 , 455572 , 456257 , 461088 , 462373 , 464840 , 465137 , 466000 , 467101 , 467967 , 472192 , 479923 , 484781 , 486501 , 488786 , 492221 , 492987 , 507983 , 509188 , 513251 , 515947 , 521074 , 522068 , 522076 , 524836 , 524855 , 532531 , 533120 , 533137 , 533485 , 539917 , 545300 , 545788 , 548140 , 552235 , 554529 , 560781 , 566597 , 567798 , 571049 , 574700 , 578703 , 582203 , 588991 , 592005 , 593965 , 594105 , 601142 , 601511 , 601717 , 602594 , 603751 , 604994 , 639637 , 778610 );
Copy
5
94.19 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
309286
355652
382312
388990
390220
395655
397565
405458
408845
409919
418890
427643
429176
444396
444424
445014
449925
452791
452849
455572
456257
461088
462373
464840
465137
466000
467101
467967
472192
479923
484781
486501
488786
492221
492987
507983
509188
513251
515947
521074
522068
522076
524836
524855
532531
533120
533137
533485
539917
545300
545788
548140
552235
554529
560781
566597
567798
571049
574700
578703
582203
588991
592005
593965
594105
601142
601511
601717
602594
603751
604994
639637
778610
]
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 (309286 , 355652 , 382312 , 388990 , 390220 , 395655 , 397565 , 405458 , 408845 , 409919 , 418890 , 427643 , 429176 , 444396 , 444424 , 445014 , 449925 , 452791 , 452849 , 455572 , 456257 , 461088 , 462373 , 464840 , 465137 , 466000 , 467101 , 467967 , 472192 , 479923 , 484781 , 486501 , 488786 , 492221 , 492987 , 507983 , 509188 , 513251 , 515947 , 521074 , 522068 , 522076 , 524836 , 524855 , 532531 , 533120 , 533137 , 533485 , 539917 , 545300 , 545788 , 548140 , 552235 , 554529 , 560781 , 566597 , 567798 , 571049 , 574700 , 578703 , 582203 , 588991 , 592005 , 593965 , 594105 , 601142 , 601511 , 601717 , 602594 , 603751 , 604994 , 639637 , 778610 );
Copy