3
9.00 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
623543
801389
570891
743857
810301
597910
786109
795569
606930
653386
801533
765195
718288
816588
715951
631479
824621
418425
716883
820662
675082
327318
804528
414058
456250
804564
810683
443183
532949
718264
792180
809631
731804
733405
777168
520144
426424
413101
383343
529722
595874
602359
416839
675718
581577
596654
387258
424801
458978
544464
457495
531156
557421
810685
534784
451482
512086
488991
421564
622055
593413
419192
520688
563218
606494
475704
]
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 (623543 , 801389 , 570891 , 743857 , 810301 , 597910 , 786109 , 795569 , 606930 , 653386 , 801533 , 765195 , 718288 , 816588 , 715951 , 631479 , 824621 , 418425 , 716883 , 820662 , 675082 , 327318 , 804528 , 414058 , 456250 , 804564 , 810683 , 443183 , 532949 , 718264 , 792180 , 809631 , 731804 , 733405 , 777168 , 520144 , 426424 , 413101 , 383343 , 529722 , 595874 , 602359 , 416839 , 675718 , 581577 , 596654 , 387258 , 424801 , 458978 , 544464 , 457495 , 531156 , 557421 , 810685 , 534784 , 451482 , 512086 , 488991 , 421564 , 622055 , 593413 , 419192 , 520688 , 563218 , 606494 , 475704 );
Copy
4
2.35 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
327318
383343
387258
413101
414058
416839
418425
419192
421564
424801
426424
443183
451482
456250
457495
458978
475704
488991
512086
520144
520688
529722
531156
532949
534784
544464
557421
563218
570891
581577
593413
595874
596654
597910
602359
606494
606930
622055
623543
631479
653386
675082
675718
715951
716883
718264
718288
731804
733405
743857
765195
777168
786109
792180
795569
801389
801533
804528
804564
809631
810301
810683
810685
816588
820662
824621
]
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 (327318 , 383343 , 387258 , 413101 , 414058 , 416839 , 418425 , 419192 , 421564 , 424801 , 426424 , 443183 , 451482 , 456250 , 457495 , 458978 , 475704 , 488991 , 512086 , 520144 , 520688 , 529722 , 531156 , 532949 , 534784 , 544464 , 557421 , 563218 , 570891 , 581577 , 593413 , 595874 , 596654 , 597910 , 602359 , 606494 , 606930 , 622055 , 623543 , 631479 , 653386 , 675082 , 675718 , 715951 , 716883 , 718264 , 718288 , 731804 , 733405 , 743857 , 765195 , 777168 , 786109 , 792180 , 795569 , 801389 , 801533 , 804528 , 804564 , 809631 , 810301 , 810683 , 810685 , 816588 , 820662 , 824621 );
Copy
5
87.07 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
327318
383343
387258
413101
414058
416839
418425
419192
421564
424801
426424
443183
451482
456250
457495
458978
475704
488991
512086
520144
520688
529722
531156
532949
534784
544464
557421
563218
570891
581577
593413
595874
596654
597910
602359
606494
606930
622055
623543
631479
653386
675082
675718
715951
716883
718264
718288
731804
733405
743857
765195
777168
786109
792180
795569
801389
801533
804528
804564
809631
810301
810683
810685
816588
820662
824621
]
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 (327318 , 383343 , 387258 , 413101 , 414058 , 416839 , 418425 , 419192 , 421564 , 424801 , 426424 , 443183 , 451482 , 456250 , 457495 , 458978 , 475704 , 488991 , 512086 , 520144 , 520688 , 529722 , 531156 , 532949 , 534784 , 544464 , 557421 , 563218 , 570891 , 581577 , 593413 , 595874 , 596654 , 597910 , 602359 , 606494 , 606930 , 622055 , 623543 , 631479 , 653386 , 675082 , 675718 , 715951 , 716883 , 718264 , 718288 , 731804 , 733405 , 743857 , 765195 , 777168 , 786109 , 792180 , 795569 , 801389 , 801533 , 804528 , 804564 , 809631 , 810301 , 810683 , 810685 , 816588 , 820662 , 824621 );
Copy