3
12.91 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
535432
444915
662046
532739
642018
530501
396647
597810
527936
414771
495273
456907
537679
674082
628082
457341
546773
454509
474557
532989
704229
415199
400760
667748
719104
637087
740596
480707
462908
646243
494801
434310
542216
530483
444820
595761
646450
537929
544668
645238
401880
579394
628117
811478
680815
450792
640789
550579
523401
509892
751434
414372
789746
511825
467089
692711
749219
427174
489997
638967
739294
523860
439233
554338
573212
454084
542192
642064
703364
515071
558100
454954
516296
581013
]
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 (535432 , 444915 , 662046 , 532739 , 642018 , 530501 , 396647 , 597810 , 527936 , 414771 , 495273 , 456907 , 537679 , 674082 , 628082 , 457341 , 546773 , 454509 , 474557 , 532989 , 704229 , 415199 , 400760 , 667748 , 719104 , 637087 , 740596 , 480707 , 462908 , 646243 , 494801 , 434310 , 542216 , 530483 , 444820 , 595761 , 646450 , 537929 , 544668 , 645238 , 401880 , 579394 , 628117 , 811478 , 680815 , 450792 , 640789 , 550579 , 523401 , 509892 , 751434 , 414372 , 789746 , 511825 , 467089 , 692711 , 749219 , 427174 , 489997 , 638967 , 739294 , 523860 , 439233 , 554338 , 573212 , 454084 , 542192 , 642064 , 703364 , 515071 , 558100 , 454954 , 516296 , 581013 );
Copy
4
2.65 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
396647
400760
401880
414372
414771
415199
427174
434310
439233
444820
444915
450792
454084
454509
454954
456907
457341
462908
467089
474557
480707
489997
494801
495273
509892
511825
515071
516296
523401
523860
527936
530483
530501
532739
532989
535432
537679
537929
542192
542216
544668
546773
550579
554338
558100
573212
579394
581013
595761
597810
628082
628117
637087
638967
640789
642018
642064
645238
646243
646450
662046
667748
674082
680815
692711
703364
704229
719104
739294
740596
749219
751434
789746
811478
]
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 (396647 , 400760 , 401880 , 414372 , 414771 , 415199 , 427174 , 434310 , 439233 , 444820 , 444915 , 450792 , 454084 , 454509 , 454954 , 456907 , 457341 , 462908 , 467089 , 474557 , 480707 , 489997 , 494801 , 495273 , 509892 , 511825 , 515071 , 516296 , 523401 , 523860 , 527936 , 530483 , 530501 , 532739 , 532989 , 535432 , 537679 , 537929 , 542192 , 542216 , 544668 , 546773 , 550579 , 554338 , 558100 , 573212 , 579394 , 581013 , 595761 , 597810 , 628082 , 628117 , 637087 , 638967 , 640789 , 642018 , 642064 , 645238 , 646243 , 646450 , 662046 , 667748 , 674082 , 680815 , 692711 , 703364 , 704229 , 719104 , 739294 , 740596 , 749219 , 751434 , 789746 , 811478 );
Copy
5
115.71 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
396647
400760
401880
414372
414771
415199
427174
434310
439233
444820
444915
450792
454084
454509
454954
456907
457341
462908
467089
474557
480707
489997
494801
495273
509892
511825
515071
516296
523401
523860
527936
530483
530501
532739
532989
535432
537679
537929
542192
542216
544668
546773
550579
554338
558100
573212
579394
581013
595761
597810
628082
628117
637087
638967
640789
642018
642064
645238
646243
646450
662046
667748
674082
680815
692711
703364
704229
719104
739294
740596
749219
751434
789746
811478
]
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 (396647 , 400760 , 401880 , 414372 , 414771 , 415199 , 427174 , 434310 , 439233 , 444820 , 444915 , 450792 , 454084 , 454509 , 454954 , 456907 , 457341 , 462908 , 467089 , 474557 , 480707 , 489997 , 494801 , 495273 , 509892 , 511825 , 515071 , 516296 , 523401 , 523860 , 527936 , 530483 , 530501 , 532739 , 532989 , 535432 , 537679 , 537929 , 542192 , 542216 , 544668 , 546773 , 550579 , 554338 , 558100 , 573212 , 579394 , 581013 , 595761 , 597810 , 628082 , 628117 , 637087 , 638967 , 640789 , 642018 , 642064 , 645238 , 646243 , 646450 , 662046 , 667748 , 674082 , 680815 , 692711 , 703364 , 704229 , 719104 , 739294 , 740596 , 749219 , 751434 , 789746 , 811478 );
Copy