4
10.05 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
384169
601319
692116
785280
799622
717102
671594
576962
772073
673624
565563
574374
629243
770017
771182
717965
579281
684053
756650
527247
630910
540553
540433
564157
760958
640710
532164
822471
823399
816305
823390
827867
810755
819993
822388
821680
468405
824501
706644
399387
390380
491551
693015
447122
447812
461577
513272
385680
397305
565558
624241
395661
405029
450476
72431
545268
615015
637530
401278
478789
437494
416098
495397
558833
601127
]
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 (384169 , 601319 , 692116 , 785280 , 799622 , 717102 , 671594 , 576962 , 772073 , 673624 , 565563 , 574374 , 629243 , 770017 , 771182 , 717965 , 579281 , 684053 , 756650 , 527247 , 630910 , 540553 , 540433 , 564157 , 760958 , 640710 , 532164 , 822471 , 823399 , 816305 , 823390 , 827867 , 810755 , 819993 , 822388 , 821680 , 468405 , 824501 , 706644 , 399387 , 390380 , 491551 , 693015 , 447122 , 447812 , 461577 , 513272 , 385680 , 397305 , 565558 , 624241 , 395661 , 405029 , 450476 , 72431 , 545268 , 615015 , 637530 , 401278 , 478789 , 437494 , 416098 , 495397 , 558833 , 601127 );
Copy
5
2.22 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
72431
384169
385680
390380
395661
397305
399387
401278
405029
416098
437494
447122
447812
450476
461577
468405
478789
491551
495397
513272
527247
532164
540433
540553
545268
558833
564157
565558
565563
574374
576962
579281
601127
601319
615015
624241
629243
630910
637530
640710
671594
673624
684053
692116
693015
706644
717102
717965
756650
760958
770017
771182
772073
785280
799622
810755
816305
819993
821680
822388
822471
823390
823399
824501
827867
]
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 (72431 , 384169 , 385680 , 390380 , 395661 , 397305 , 399387 , 401278 , 405029 , 416098 , 437494 , 447122 , 447812 , 450476 , 461577 , 468405 , 478789 , 491551 , 495397 , 513272 , 527247 , 532164 , 540433 , 540553 , 545268 , 558833 , 564157 , 565558 , 565563 , 574374 , 576962 , 579281 , 601127 , 601319 , 615015 , 624241 , 629243 , 630910 , 637530 , 640710 , 671594 , 673624 , 684053 , 692116 , 693015 , 706644 , 717102 , 717965 , 756650 , 760958 , 770017 , 771182 , 772073 , 785280 , 799622 , 810755 , 816305 , 819993 , 821680 , 822388 , 822471 , 823390 , 823399 , 824501 , 827867 );
Copy
6
69.56 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
72431
384169
385680
390380
395661
397305
399387
401278
405029
416098
437494
447122
447812
450476
461577
468405
478789
491551
495397
513272
527247
532164
540433
540553
545268
558833
564157
565558
565563
574374
576962
579281
601127
601319
615015
624241
629243
630910
637530
640710
671594
673624
684053
692116
693015
706644
717102
717965
756650
760958
770017
771182
772073
785280
799622
810755
816305
819993
821680
822388
822471
823390
823399
824501
827867
]
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 (72431 , 384169 , 385680 , 390380 , 395661 , 397305 , 399387 , 401278 , 405029 , 416098 , 437494 , 447122 , 447812 , 450476 , 461577 , 468405 , 478789 , 491551 , 495397 , 513272 , 527247 , 532164 , 540433 , 540553 , 545268 , 558833 , 564157 , 565558 , 565563 , 574374 , 576962 , 579281 , 601127 , 601319 , 615015 , 624241 , 629243 , 630910 , 637530 , 640710 , 671594 , 673624 , 684053 , 692116 , 693015 , 706644 , 717102 , 717965 , 756650 , 760958 , 770017 , 771182 , 772073 , 785280 , 799622 , 810755 , 816305 , 819993 , 821680 , 822388 , 822471 , 823390 , 823399 , 824501 , 827867 );
Copy