3
9.73 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
531554
743893
533670
712353
547983
507356
732956
766128
566391
782213
793970
754043
714524
759485
808577
469332
504206
523302
533648
694533
722655
784717
454555
553626
741114
746997
784874
585097
462717
446314
486385
495182
504271
462940
551238
562256
551939
586537
624999
358596
504268
555786
540953
522523
551179
549622
586517
466188
521977
714261
552253
458890
484721
550613
568193
574762
458974
451064
504260
479126
716032
601478
491407
510426
525691
601340
]
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 (531554 , 743893 , 533670 , 712353 , 547983 , 507356 , 732956 , 766128 , 566391 , 782213 , 793970 , 754043 , 714524 , 759485 , 808577 , 469332 , 504206 , 523302 , 533648 , 694533 , 722655 , 784717 , 454555 , 553626 , 741114 , 746997 , 784874 , 585097 , 462717 , 446314 , 486385 , 495182 , 504271 , 462940 , 551238 , 562256 , 551939 , 586537 , 624999 , 358596 , 504268 , 555786 , 540953 , 522523 , 551179 , 549622 , 586517 , 466188 , 521977 , 714261 , 552253 , 458890 , 484721 , 550613 , 568193 , 574762 , 458974 , 451064 , 504260 , 479126 , 716032 , 601478 , 491407 , 510426 , 525691 , 601340 );
Copy
4
212.28 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
358596
446314
451064
454555
458890
458974
462717
462940
466188
469332
479126
484721
486385
491407
495182
504206
504260
504268
504271
507356
510426
521977
522523
523302
525691
531554
533648
533670
540953
547983
549622
550613
551179
551238
551939
552253
553626
555786
562256
566391
568193
574762
585097
586517
586537
601340
601478
624999
694533
712353
714261
714524
716032
722655
732956
741114
743893
746997
754043
759485
766128
782213
784717
784874
793970
808577
]
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 (358596 , 446314 , 451064 , 454555 , 458890 , 458974 , 462717 , 462940 , 466188 , 469332 , 479126 , 484721 , 486385 , 491407 , 495182 , 504206 , 504260 , 504268 , 504271 , 507356 , 510426 , 521977 , 522523 , 523302 , 525691 , 531554 , 533648 , 533670 , 540953 , 547983 , 549622 , 550613 , 551179 , 551238 , 551939 , 552253 , 553626 , 555786 , 562256 , 566391 , 568193 , 574762 , 585097 , 586517 , 586537 , 601340 , 601478 , 624999 , 694533 , 712353 , 714261 , 714524 , 716032 , 722655 , 732956 , 741114 , 743893 , 746997 , 754043 , 759485 , 766128 , 782213 , 784717 , 784874 , 793970 , 808577 );
Copy
5
311.66 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
358596
446314
451064
454555
458890
458974
462717
462940
466188
469332
479126
484721
486385
491407
495182
504206
504260
504268
504271
507356
510426
521977
522523
523302
525691
531554
533648
533670
540953
547983
549622
550613
551179
551238
551939
552253
553626
555786
562256
566391
568193
574762
585097
586517
586537
601340
601478
624999
694533
712353
714261
714524
716032
722655
732956
741114
743893
746997
754043
759485
766128
782213
784717
784874
793970
808577
]
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 (358596 , 446314 , 451064 , 454555 , 458890 , 458974 , 462717 , 462940 , 466188 , 469332 , 479126 , 484721 , 486385 , 491407 , 495182 , 504206 , 504260 , 504268 , 504271 , 507356 , 510426 , 521977 , 522523 , 523302 , 525691 , 531554 , 533648 , 533670 , 540953 , 547983 , 549622 , 550613 , 551179 , 551238 , 551939 , 552253 , 553626 , 555786 , 562256 , 566391 , 568193 , 574762 , 585097 , 586517 , 586537 , 601340 , 601478 , 624999 , 694533 , 712353 , 714261 , 714524 , 716032 , 722655 , 732956 , 741114 , 743893 , 746997 , 754043 , 759485 , 766128 , 782213 , 784717 , 784874 , 793970 , 808577 );
Copy