3
224.50 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
486802
477025
532776
534779
534784
535269
534764
534776
535896
567211
568503
541440
541442
646938
678970
641853
625274
632712
634464
604781
778061
789986
813257
732316
732559
475543
451064
494690
540431
534280
535264
495149
530739
534752
534913
522398
534774
535279
591689
598099
540785
450357
535023
534797
535017
535282
580290
665776
584013
590809
538473
412189
519556
534842
536370
580264
596856
614995
632252
666868
544686
606203
589769
642662
642746
]
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 (486802 , 477025 , 532776 , 534779 , 534784 , 535269 , 534764 , 534776 , 535896 , 567211 , 568503 , 541440 , 541442 , 646938 , 678970 , 641853 , 625274 , 632712 , 634464 , 604781 , 778061 , 789986 , 813257 , 732316 , 732559 , 475543 , 451064 , 494690 , 540431 , 534280 , 535264 , 495149 , 530739 , 534752 , 534913 , 522398 , 534774 , 535279 , 591689 , 598099 , 540785 , 450357 , 535023 , 534797 , 535017 , 535282 , 580290 , 665776 , 584013 , 590809 , 538473 , 412189 , 519556 , 534842 , 536370 , 580264 , 596856 , 614995 , 632252 , 666868 , 544686 , 606203 , 589769 , 642662 , 642746 );
Copy
4
2.77 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
412189
450357
451064
475543
477025
486802
494690
495149
519556
522398
530739
532776
534280
534752
534764
534774
534776
534779
534784
534797
534842
534913
535017
535023
535264
535269
535279
535282
535896
536370
538473
540431
540785
541440
541442
544686
567211
568503
580264
580290
584013
589769
590809
591689
596856
598099
604781
606203
614995
625274
632252
632712
634464
641853
642662
642746
646938
665776
666868
678970
732316
732559
778061
789986
813257
]
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 (412189 , 450357 , 451064 , 475543 , 477025 , 486802 , 494690 , 495149 , 519556 , 522398 , 530739 , 532776 , 534280 , 534752 , 534764 , 534774 , 534776 , 534779 , 534784 , 534797 , 534842 , 534913 , 535017 , 535023 , 535264 , 535269 , 535279 , 535282 , 535896 , 536370 , 538473 , 540431 , 540785 , 541440 , 541442 , 544686 , 567211 , 568503 , 580264 , 580290 , 584013 , 589769 , 590809 , 591689 , 596856 , 598099 , 604781 , 606203 , 614995 , 625274 , 632252 , 632712 , 634464 , 641853 , 642662 , 642746 , 646938 , 665776 , 666868 , 678970 , 732316 , 732559 , 778061 , 789986 , 813257 );
Copy
5
79.92 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
412189
450357
451064
475543
477025
486802
494690
495149
519556
522398
530739
532776
534280
534752
534764
534774
534776
534779
534784
534797
534842
534913
535017
535023
535264
535269
535279
535282
535896
536370
538473
540431
540785
541440
541442
544686
567211
568503
580264
580290
584013
589769
590809
591689
596856
598099
604781
606203
614995
625274
632252
632712
634464
641853
642662
642746
646938
665776
666868
678970
732316
732559
778061
789986
813257
]
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 (412189 , 450357 , 451064 , 475543 , 477025 , 486802 , 494690 , 495149 , 519556 , 522398 , 530739 , 532776 , 534280 , 534752 , 534764 , 534774 , 534776 , 534779 , 534784 , 534797 , 534842 , 534913 , 535017 , 535023 , 535264 , 535269 , 535279 , 535282 , 535896 , 536370 , 538473 , 540431 , 540785 , 541440 , 541442 , 544686 , 567211 , 568503 , 580264 , 580290 , 584013 , 589769 , 590809 , 591689 , 596856 , 598099 , 604781 , 606203 , 614995 , 625274 , 632252 , 632712 , 634464 , 641853 , 642662 , 642746 , 646938 , 665776 , 666868 , 678970 , 732316 , 732559 , 778061 , 789986 , 813257 );
Copy