3
11.77 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
453794
407885
205882
392623
468399
434440
399632
479528
570199
509064
187986
407350
384423
402244
466691
396698
705310
468899
448321
409887
460770
561851
397204
491925
383650
388628
429368
576298
590989
478462
471681
414068
409312
427879
465993
459649
397129
508846
478963
447549
478586
489987
445661
469580
430818
404953
407444
409929
429523
450772
469751
497837
500098
431341
430584
495895
483375
451264
415115
396742
443487
516314
597028
483626
523996
444606
654399
432359
523757
663537
]
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 (453794 , 407885 , 205882 , 392623 , 468399 , 434440 , 399632 , 479528 , 570199 , 509064 , 187986 , 407350 , 384423 , 402244 , 466691 , 396698 , 705310 , 468899 , 448321 , 409887 , 460770 , 561851 , 397204 , 491925 , 383650 , 388628 , 429368 , 576298 , 590989 , 478462 , 471681 , 414068 , 409312 , 427879 , 465993 , 459649 , 397129 , 508846 , 478963 , 447549 , 478586 , 489987 , 445661 , 469580 , 430818 , 404953 , 407444 , 409929 , 429523 , 450772 , 469751 , 497837 , 500098 , 431341 , 430584 , 495895 , 483375 , 451264 , 415115 , 396742 , 443487 , 516314 , 597028 , 483626 , 523996 , 444606 , 654399 , 432359 , 523757 , 663537 );
Copy
4
2.90 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
187986
205882
383650
384423
388628
392623
396698
396742
397129
397204
399632
402244
404953
407350
407444
407885
409312
409887
409929
414068
415115
427879
429368
429523
430584
430818
431341
432359
434440
443487
444606
445661
447549
448321
450772
451264
453794
459649
460770
465993
466691
468399
468899
469580
469751
471681
478462
478586
478963
479528
483375
483626
489987
491925
495895
497837
500098
508846
509064
516314
523757
523996
561851
570199
576298
590989
597028
654399
663537
705310
]
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 (187986 , 205882 , 383650 , 384423 , 388628 , 392623 , 396698 , 396742 , 397129 , 397204 , 399632 , 402244 , 404953 , 407350 , 407444 , 407885 , 409312 , 409887 , 409929 , 414068 , 415115 , 427879 , 429368 , 429523 , 430584 , 430818 , 431341 , 432359 , 434440 , 443487 , 444606 , 445661 , 447549 , 448321 , 450772 , 451264 , 453794 , 459649 , 460770 , 465993 , 466691 , 468399 , 468899 , 469580 , 469751 , 471681 , 478462 , 478586 , 478963 , 479528 , 483375 , 483626 , 489987 , 491925 , 495895 , 497837 , 500098 , 508846 , 509064 , 516314 , 523757 , 523996 , 561851 , 570199 , 576298 , 590989 , 597028 , 654399 , 663537 , 705310 );
Copy
5
97.45 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
187986
205882
383650
384423
388628
392623
396698
396742
397129
397204
399632
402244
404953
407350
407444
407885
409312
409887
409929
414068
415115
427879
429368
429523
430584
430818
431341
432359
434440
443487
444606
445661
447549
448321
450772
451264
453794
459649
460770
465993
466691
468399
468899
469580
469751
471681
478462
478586
478963
479528
483375
483626
489987
491925
495895
497837
500098
508846
509064
516314
523757
523996
561851
570199
576298
590989
597028
654399
663537
705310
]
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 (187986 , 205882 , 383650 , 384423 , 388628 , 392623 , 396698 , 396742 , 397129 , 397204 , 399632 , 402244 , 404953 , 407350 , 407444 , 407885 , 409312 , 409887 , 409929 , 414068 , 415115 , 427879 , 429368 , 429523 , 430584 , 430818 , 431341 , 432359 , 434440 , 443487 , 444606 , 445661 , 447549 , 448321 , 450772 , 451264 , 453794 , 459649 , 460770 , 465993 , 466691 , 468399 , 468899 , 469580 , 469751 , 471681 , 478462 , 478586 , 478963 , 479528 , 483375 , 483626 , 489987 , 491925 , 495895 , 497837 , 500098 , 508846 , 509064 , 516314 , 523757 , 523996 , 561851 , 570199 , 576298 , 590989 , 597028 , 654399 , 663537 , 705310 );
Copy