3
11.96 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
588880
498308
810523
532550
568297
636179
643543
488793
532536
705551
533768
546613
544880
806696
597827
521996
682714
624698
531021
506628
598240
759817
529971
699900
751592
671534
806753
535034
553876
715988
809954
814195
562251
786779
775657
721003
553587
550030
719647
466654
404532
783309
423983
522006
422103
557446
523304
807995
783303
452211
772433
599145
469956
708667
424349
533137
475756
418381
561969
535916
574094
711480
639516
589898
535031
451727
515480
591985
517039
419351
602165
551277
661253
532604
491023
]
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 (588880 , 498308 , 810523 , 532550 , 568297 , 636179 , 643543 , 488793 , 532536 , 705551 , 533768 , 546613 , 544880 , 806696 , 597827 , 521996 , 682714 , 624698 , 531021 , 506628 , 598240 , 759817 , 529971 , 699900 , 751592 , 671534 , 806753 , 535034 , 553876 , 715988 , 809954 , 814195 , 562251 , 786779 , 775657 , 721003 , 553587 , 550030 , 719647 , 466654 , 404532 , 783309 , 423983 , 522006 , 422103 , 557446 , 523304 , 807995 , 783303 , 452211 , 772433 , 599145 , 469956 , 708667 , 424349 , 533137 , 475756 , 418381 , 561969 , 535916 , 574094 , 711480 , 639516 , 589898 , 535031 , 451727 , 515480 , 591985 , 517039 , 419351 , 602165 , 551277 , 661253 , 532604 , 491023 );
Copy
4
2.83 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
404532
418381
419351
422103
423983
424349
451727
452211
466654
469956
475756
488793
491023
498308
506628
515480
517039
521996
522006
523304
529971
531021
532536
532550
532604
533137
533768
535031
535034
535916
544880
546613
550030
551277
553587
553876
557446
561969
562251
568297
574094
588880
589898
591985
597827
598240
599145
602165
624698
636179
639516
643543
661253
671534
682714
699900
705551
708667
711480
715988
719647
721003
751592
759817
772433
775657
783303
783309
786779
806696
806753
807995
809954
810523
814195
]
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 (404532 , 418381 , 419351 , 422103 , 423983 , 424349 , 451727 , 452211 , 466654 , 469956 , 475756 , 488793 , 491023 , 498308 , 506628 , 515480 , 517039 , 521996 , 522006 , 523304 , 529971 , 531021 , 532536 , 532550 , 532604 , 533137 , 533768 , 535031 , 535034 , 535916 , 544880 , 546613 , 550030 , 551277 , 553587 , 553876 , 557446 , 561969 , 562251 , 568297 , 574094 , 588880 , 589898 , 591985 , 597827 , 598240 , 599145 , 602165 , 624698 , 636179 , 639516 , 643543 , 661253 , 671534 , 682714 , 699900 , 705551 , 708667 , 711480 , 715988 , 719647 , 721003 , 751592 , 759817 , 772433 , 775657 , 783303 , 783309 , 786779 , 806696 , 806753 , 807995 , 809954 , 810523 , 814195 );
Copy
5
119.94 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
404532
418381
419351
422103
423983
424349
451727
452211
466654
469956
475756
488793
491023
498308
506628
515480
517039
521996
522006
523304
529971
531021
532536
532550
532604
533137
533768
535031
535034
535916
544880
546613
550030
551277
553587
553876
557446
561969
562251
568297
574094
588880
589898
591985
597827
598240
599145
602165
624698
636179
639516
643543
661253
671534
682714
699900
705551
708667
711480
715988
719647
721003
751592
759817
772433
775657
783303
783309
786779
806696
806753
807995
809954
810523
814195
]
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 (404532 , 418381 , 419351 , 422103 , 423983 , 424349 , 451727 , 452211 , 466654 , 469956 , 475756 , 488793 , 491023 , 498308 , 506628 , 515480 , 517039 , 521996 , 522006 , 523304 , 529971 , 531021 , 532536 , 532550 , 532604 , 533137 , 533768 , 535031 , 535034 , 535916 , 544880 , 546613 , 550030 , 551277 , 553587 , 553876 , 557446 , 561969 , 562251 , 568297 , 574094 , 588880 , 589898 , 591985 , 597827 , 598240 , 599145 , 602165 , 624698 , 636179 , 639516 , 643543 , 661253 , 671534 , 682714 , 699900 , 705551 , 708667 , 711480 , 715988 , 719647 , 721003 , 751592 , 759817 , 772433 , 775657 , 783303 , 783309 , 786779 , 806696 , 806753 , 807995 , 809954 , 810523 , 814195 );
Copy