3
10.58 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
407703
381764
486584
488238
391576
143302
479668
422022
177440
478033
383399
58516
391255
384142
191601
456894
391472
411590
385890
451540
403827
480898
386866
398461
409234
455099
385356
446294
392632
505243
456033
445334
383063
383290
397454
418617
443919
457266
497725
517545
488948
397422
418757
425115
514063
492635
188669
503403
464272
507867
462207
455131
561892
473124
475483
515578
485216
512615
507245
492395
518865
601935
624367
550531
415419
514997
]
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 (407703 , 381764 , 486584 , 488238 , 391576 , 143302 , 479668 , 422022 , 177440 , 478033 , 383399 , 58516 , 391255 , 384142 , 191601 , 456894 , 391472 , 411590 , 385890 , 451540 , 403827 , 480898 , 386866 , 398461 , 409234 , 455099 , 385356 , 446294 , 392632 , 505243 , 456033 , 445334 , 383063 , 383290 , 397454 , 418617 , 443919 , 457266 , 497725 , 517545 , 488948 , 397422 , 418757 , 425115 , 514063 , 492635 , 188669 , 503403 , 464272 , 507867 , 462207 , 455131 , 561892 , 473124 , 475483 , 515578 , 485216 , 512615 , 507245 , 492395 , 518865 , 601935 , 624367 , 550531 , 415419 , 514997 );
Copy
4
2.43 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
58516
143302
177440
188669
191601
381764
383063
383290
383399
384142
385356
385890
386866
391255
391472
391576
392632
397422
397454
398461
403827
407703
409234
411590
415419
418617
418757
422022
425115
443919
445334
446294
451540
455099
455131
456033
456894
457266
462207
464272
473124
475483
478033
479668
480898
485216
486584
488238
488948
492395
492635
497725
503403
505243
507245
507867
512615
514063
514997
515578
517545
518865
550531
561892
601935
624367
]
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 (58516 , 143302 , 177440 , 188669 , 191601 , 381764 , 383063 , 383290 , 383399 , 384142 , 385356 , 385890 , 386866 , 391255 , 391472 , 391576 , 392632 , 397422 , 397454 , 398461 , 403827 , 407703 , 409234 , 411590 , 415419 , 418617 , 418757 , 422022 , 425115 , 443919 , 445334 , 446294 , 451540 , 455099 , 455131 , 456033 , 456894 , 457266 , 462207 , 464272 , 473124 , 475483 , 478033 , 479668 , 480898 , 485216 , 486584 , 488238 , 488948 , 492395 , 492635 , 497725 , 503403 , 505243 , 507245 , 507867 , 512615 , 514063 , 514997 , 515578 , 517545 , 518865 , 550531 , 561892 , 601935 , 624367 );
Copy
5
97.24 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
58516
143302
177440
188669
191601
381764
383063
383290
383399
384142
385356
385890
386866
391255
391472
391576
392632
397422
397454
398461
403827
407703
409234
411590
415419
418617
418757
422022
425115
443919
445334
446294
451540
455099
455131
456033
456894
457266
462207
464272
473124
475483
478033
479668
480898
485216
486584
488238
488948
492395
492635
497725
503403
505243
507245
507867
512615
514063
514997
515578
517545
518865
550531
561892
601935
624367
]
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 (58516 , 143302 , 177440 , 188669 , 191601 , 381764 , 383063 , 383290 , 383399 , 384142 , 385356 , 385890 , 386866 , 391255 , 391472 , 391576 , 392632 , 397422 , 397454 , 398461 , 403827 , 407703 , 409234 , 411590 , 415419 , 418617 , 418757 , 422022 , 425115 , 443919 , 445334 , 446294 , 451540 , 455099 , 455131 , 456033 , 456894 , 457266 , 462207 , 464272 , 473124 , 475483 , 478033 , 479668 , 480898 , 485216 , 486584 , 488238 , 488948 , 492395 , 492635 , 497725 , 503403 , 505243 , 507245 , 507867 , 512615 , 514063 , 514997 , 515578 , 517545 , 518865 , 550531 , 561892 , 601935 , 624367 );
Copy