3
13.80 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
457806
500860
527706
445249
503400
437657
455855
521201
448667
404292
515119
382130
456407
99129
558251
449252
417272
457010
563008
418879
469777
609897
563048
418256
509217
485540
515578
458361
468554
489856
389332
400161
450461
483079
517221
476234
457687
453771
507903
560816
514413
518290
441022
577909
597533
597002
650289
602655
559279
599483
528807
567829
551487
625726
528353
487926
528252
526220
589544
621612
463002
619527
515184
515840
589148
596423
642700
521815
]
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 (457806 , 500860 , 527706 , 445249 , 503400 , 437657 , 455855 , 521201 , 448667 , 404292 , 515119 , 382130 , 456407 , 99129 , 558251 , 449252 , 417272 , 457010 , 563008 , 418879 , 469777 , 609897 , 563048 , 418256 , 509217 , 485540 , 515578 , 458361 , 468554 , 489856 , 389332 , 400161 , 450461 , 483079 , 517221 , 476234 , 457687 , 453771 , 507903 , 560816 , 514413 , 518290 , 441022 , 577909 , 597533 , 597002 , 650289 , 602655 , 559279 , 599483 , 528807 , 567829 , 551487 , 625726 , 528353 , 487926 , 528252 , 526220 , 589544 , 621612 , 463002 , 619527 , 515184 , 515840 , 589148 , 596423 , 642700 , 521815 );
Copy
4
3.05 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
99129
382130
389332
400161
404292
417272
418256
418879
437657
441022
445249
448667
449252
450461
453771
455855
456407
457010
457687
457806
458361
463002
468554
469777
476234
483079
485540
487926
489856
500860
503400
507903
509217
514413
515119
515184
515578
515840
517221
518290
521201
521815
526220
527706
528252
528353
528807
551487
558251
559279
560816
563008
563048
567829
577909
589148
589544
596423
597002
597533
599483
602655
609897
619527
621612
625726
642700
650289
]
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 (99129 , 382130 , 389332 , 400161 , 404292 , 417272 , 418256 , 418879 , 437657 , 441022 , 445249 , 448667 , 449252 , 450461 , 453771 , 455855 , 456407 , 457010 , 457687 , 457806 , 458361 , 463002 , 468554 , 469777 , 476234 , 483079 , 485540 , 487926 , 489856 , 500860 , 503400 , 507903 , 509217 , 514413 , 515119 , 515184 , 515578 , 515840 , 517221 , 518290 , 521201 , 521815 , 526220 , 527706 , 528252 , 528353 , 528807 , 551487 , 558251 , 559279 , 560816 , 563008 , 563048 , 567829 , 577909 , 589148 , 589544 , 596423 , 597002 , 597533 , 599483 , 602655 , 609897 , 619527 , 621612 , 625726 , 642700 , 650289 );
Copy
5
77.85 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
99129
382130
389332
400161
404292
417272
418256
418879
437657
441022
445249
448667
449252
450461
453771
455855
456407
457010
457687
457806
458361
463002
468554
469777
476234
483079
485540
487926
489856
500860
503400
507903
509217
514413
515119
515184
515578
515840
517221
518290
521201
521815
526220
527706
528252
528353
528807
551487
558251
559279
560816
563008
563048
567829
577909
589148
589544
596423
597002
597533
599483
602655
609897
619527
621612
625726
642700
650289
]
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 (99129 , 382130 , 389332 , 400161 , 404292 , 417272 , 418256 , 418879 , 437657 , 441022 , 445249 , 448667 , 449252 , 450461 , 453771 , 455855 , 456407 , 457010 , 457687 , 457806 , 458361 , 463002 , 468554 , 469777 , 476234 , 483079 , 485540 , 487926 , 489856 , 500860 , 503400 , 507903 , 509217 , 514413 , 515119 , 515184 , 515578 , 515840 , 517221 , 518290 , 521201 , 521815 , 526220 , 527706 , 528252 , 528353 , 528807 , 551487 , 558251 , 559279 , 560816 , 563008 , 563048 , 567829 , 577909 , 589148 , 589544 , 596423 , 597002 , 597533 , 599483 , 602655 , 609897 , 619527 , 621612 , 625726 , 642700 , 650289 );
Copy