3
7.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
559324
578190
448619
678972
386230
545527
548016
672808
577276
805343
780631
562927
744983
395891
450128
466348
674108
766036
678971
733538
545549
513410
506094
675527
559327
657246
452446
453101
460172
420154
453127
558297
545769
751495
469575
470264
744985
409081
664287
389391
554763
601714
466789
462204
472700
395714
559332
660860
742689
558308
517047
468076
578204
668747
498442
482778
439684
412289
413972
556320
488301
480749
526729
]
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 (559324 , 578190 , 448619 , 678972 , 386230 , 545527 , 548016 , 672808 , 577276 , 805343 , 780631 , 562927 , 744983 , 395891 , 450128 , 466348 , 674108 , 766036 , 678971 , 733538 , 545549 , 513410 , 506094 , 675527 , 559327 , 657246 , 452446 , 453101 , 460172 , 420154 , 453127 , 558297 , 545769 , 751495 , 469575 , 470264 , 744985 , 409081 , 664287 , 389391 , 554763 , 601714 , 466789 , 462204 , 472700 , 395714 , 559332 , 660860 , 742689 , 558308 , 517047 , 468076 , 578204 , 668747 , 498442 , 482778 , 439684 , 412289 , 413972 , 556320 , 488301 , 480749 , 526729 );
Copy
4
2.70 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
386230
389391
395714
395891
409081
412289
413972
420154
439684
448619
450128
452446
453101
453127
460172
462204
466348
466789
468076
469575
470264
472700
480749
482778
488301
498442
506094
513410
517047
526729
545527
545549
545769
548016
554763
556320
558297
558308
559324
559327
559332
562927
577276
578190
578204
601714
657246
660860
664287
668747
672808
674108
675527
678971
678972
733538
742689
744983
744985
751495
766036
780631
805343
]
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 (386230 , 389391 , 395714 , 395891 , 409081 , 412289 , 413972 , 420154 , 439684 , 448619 , 450128 , 452446 , 453101 , 453127 , 460172 , 462204 , 466348 , 466789 , 468076 , 469575 , 470264 , 472700 , 480749 , 482778 , 488301 , 498442 , 506094 , 513410 , 517047 , 526729 , 545527 , 545549 , 545769 , 548016 , 554763 , 556320 , 558297 , 558308 , 559324 , 559327 , 559332 , 562927 , 577276 , 578190 , 578204 , 601714 , 657246 , 660860 , 664287 , 668747 , 672808 , 674108 , 675527 , 678971 , 678972 , 733538 , 742689 , 744983 , 744985 , 751495 , 766036 , 780631 , 805343 );
Copy
5
82.64 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
386230
389391
395714
395891
409081
412289
413972
420154
439684
448619
450128
452446
453101
453127
460172
462204
466348
466789
468076
469575
470264
472700
480749
482778
488301
498442
506094
513410
517047
526729
545527
545549
545769
548016
554763
556320
558297
558308
559324
559327
559332
562927
577276
578190
578204
601714
657246
660860
664287
668747
672808
674108
675527
678971
678972
733538
742689
744983
744985
751495
766036
780631
805343
]
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 (386230 , 389391 , 395714 , 395891 , 409081 , 412289 , 413972 , 420154 , 439684 , 448619 , 450128 , 452446 , 453101 , 453127 , 460172 , 462204 , 466348 , 466789 , 468076 , 469575 , 470264 , 472700 , 480749 , 482778 , 488301 , 498442 , 506094 , 513410 , 517047 , 526729 , 545527 , 545549 , 545769 , 548016 , 554763 , 556320 , 558297 , 558308 , 559324 , 559327 , 559332 , 562927 , 577276 , 578190 , 578204 , 601714 , 657246 , 660860 , 664287 , 668747 , 672808 , 674108 , 675527 , 678971 , 678972 , 733538 , 742689 , 744983 , 744985 , 751495 , 766036 , 780631 , 805343 );
Copy