3
17.16 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
798409
491088
546398
734212
396026
426639
468510
444120
420122
441490
467059
751532
765865
389385
424071
512814
428632
805150
459354
551576
426247
470035
500634
465725
763740
445092
460910
465561
468159
435575
469896
519362
497893
468228
492619
465432
476297
494547
501027
482312
516495
494175
495376
500794
444419
469519
478798
452620
465429
458672
475593
465143
498630
487519
502729
482280
469167
418142
411036
420008
438333
450255
520562
489665
449104
456131
576157
476604
]
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 (798409 , 491088 , 546398 , 734212 , 396026 , 426639 , 468510 , 444120 , 420122 , 441490 , 467059 , 751532 , 765865 , 389385 , 424071 , 512814 , 428632 , 805150 , 459354 , 551576 , 426247 , 470035 , 500634 , 465725 , 763740 , 445092 , 460910 , 465561 , 468159 , 435575 , 469896 , 519362 , 497893 , 468228 , 492619 , 465432 , 476297 , 494547 , 501027 , 482312 , 516495 , 494175 , 495376 , 500794 , 444419 , 469519 , 478798 , 452620 , 465429 , 458672 , 475593 , 465143 , 498630 , 487519 , 502729 , 482280 , 469167 , 418142 , 411036 , 420008 , 438333 , 450255 , 520562 , 489665 , 449104 , 456131 , 576157 , 476604 );
Copy
4
3.27 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
389385
396026
411036
418142
420008
420122
424071
426247
426639
428632
435575
438333
441490
444120
444419
445092
449104
450255
452620
456131
458672
459354
460910
465143
465429
465432
465561
465725
467059
468159
468228
468510
469167
469519
469896
470035
475593
476297
476604
478798
482280
482312
487519
489665
491088
492619
494175
494547
495376
497893
498630
500634
500794
501027
502729
512814
516495
519362
520562
546398
551576
576157
734212
751532
763740
765865
798409
805150
]
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 (389385 , 396026 , 411036 , 418142 , 420008 , 420122 , 424071 , 426247 , 426639 , 428632 , 435575 , 438333 , 441490 , 444120 , 444419 , 445092 , 449104 , 450255 , 452620 , 456131 , 458672 , 459354 , 460910 , 465143 , 465429 , 465432 , 465561 , 465725 , 467059 , 468159 , 468228 , 468510 , 469167 , 469519 , 469896 , 470035 , 475593 , 476297 , 476604 , 478798 , 482280 , 482312 , 487519 , 489665 , 491088 , 492619 , 494175 , 494547 , 495376 , 497893 , 498630 , 500634 , 500794 , 501027 , 502729 , 512814 , 516495 , 519362 , 520562 , 546398 , 551576 , 576157 , 734212 , 751532 , 763740 , 765865 , 798409 , 805150 );
Copy
5
77.96 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
389385
396026
411036
418142
420008
420122
424071
426247
426639
428632
435575
438333
441490
444120
444419
445092
449104
450255
452620
456131
458672
459354
460910
465143
465429
465432
465561
465725
467059
468159
468228
468510
469167
469519
469896
470035
475593
476297
476604
478798
482280
482312
487519
489665
491088
492619
494175
494547
495376
497893
498630
500634
500794
501027
502729
512814
516495
519362
520562
546398
551576
576157
734212
751532
763740
765865
798409
805150
]
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 (389385 , 396026 , 411036 , 418142 , 420008 , 420122 , 424071 , 426247 , 426639 , 428632 , 435575 , 438333 , 441490 , 444120 , 444419 , 445092 , 449104 , 450255 , 452620 , 456131 , 458672 , 459354 , 460910 , 465143 , 465429 , 465432 , 465561 , 465725 , 467059 , 468159 , 468228 , 468510 , 469167 , 469519 , 469896 , 470035 , 475593 , 476297 , 476604 , 478798 , 482280 , 482312 , 487519 , 489665 , 491088 , 492619 , 494175 , 494547 , 495376 , 497893 , 498630 , 500634 , 500794 , 501027 , 502729 , 512814 , 516495 , 519362 , 520562 , 546398 , 551576 , 576157 , 734212 , 751532 , 763740 , 765865 , 798409 , 805150 );
Copy