3
6.83 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
762538
790329
733933
825248
550655
422110
780400
713829
803263
710913
645804
589636
717114
814769
613227
456054
744596
792188
716546
557173
473627
453723
553478
431523
500175
662370
530226
710994
797543
794524
701811
543038
664499
825872
671440
818967
518359
651370
561536
801453
742074
812724
697735
662133
802857
797072
732591
441258
580857
682336
755198
720176
515849
497214
431521
543347
797437
451479
488190
707693
418440
697006
556502
517831
]
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 (762538 , 790329 , 733933 , 825248 , 550655 , 422110 , 780400 , 713829 , 803263 , 710913 , 645804 , 589636 , 717114 , 814769 , 613227 , 456054 , 744596 , 792188 , 716546 , 557173 , 473627 , 453723 , 553478 , 431523 , 500175 , 662370 , 530226 , 710994 , 797543 , 794524 , 701811 , 543038 , 664499 , 825872 , 671440 , 818967 , 518359 , 651370 , 561536 , 801453 , 742074 , 812724 , 697735 , 662133 , 802857 , 797072 , 732591 , 441258 , 580857 , 682336 , 755198 , 720176 , 515849 , 497214 , 431521 , 543347 , 797437 , 451479 , 488190 , 707693 , 418440 , 697006 , 556502 , 517831 );
Copy
4
2.48 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
418440
422110
431521
431523
441258
451479
453723
456054
473627
488190
497214
500175
515849
517831
518359
530226
543038
543347
550655
553478
556502
557173
561536
580857
589636
613227
645804
651370
662133
662370
664499
671440
682336
697006
697735
701811
707693
710913
710994
713829
716546
717114
720176
732591
733933
742074
744596
755198
762538
780400
790329
792188
794524
797072
797437
797543
801453
802857
803263
812724
814769
818967
825248
825872
]
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 (418440 , 422110 , 431521 , 431523 , 441258 , 451479 , 453723 , 456054 , 473627 , 488190 , 497214 , 500175 , 515849 , 517831 , 518359 , 530226 , 543038 , 543347 , 550655 , 553478 , 556502 , 557173 , 561536 , 580857 , 589636 , 613227 , 645804 , 651370 , 662133 , 662370 , 664499 , 671440 , 682336 , 697006 , 697735 , 701811 , 707693 , 710913 , 710994 , 713829 , 716546 , 717114 , 720176 , 732591 , 733933 , 742074 , 744596 , 755198 , 762538 , 780400 , 790329 , 792188 , 794524 , 797072 , 797437 , 797543 , 801453 , 802857 , 803263 , 812724 , 814769 , 818967 , 825248 , 825872 );
Copy
5
87.39 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
418440
422110
431521
431523
441258
451479
453723
456054
473627
488190
497214
500175
515849
517831
518359
530226
543038
543347
550655
553478
556502
557173
561536
580857
589636
613227
645804
651370
662133
662370
664499
671440
682336
697006
697735
701811
707693
710913
710994
713829
716546
717114
720176
732591
733933
742074
744596
755198
762538
780400
790329
792188
794524
797072
797437
797543
801453
802857
803263
812724
814769
818967
825248
825872
]
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 (418440 , 422110 , 431521 , 431523 , 441258 , 451479 , 453723 , 456054 , 473627 , 488190 , 497214 , 500175 , 515849 , 517831 , 518359 , 530226 , 543038 , 543347 , 550655 , 553478 , 556502 , 557173 , 561536 , 580857 , 589636 , 613227 , 645804 , 651370 , 662133 , 662370 , 664499 , 671440 , 682336 , 697006 , 697735 , 701811 , 707693 , 710913 , 710994 , 713829 , 716546 , 717114 , 720176 , 732591 , 733933 , 742074 , 744596 , 755198 , 762538 , 780400 , 790329 , 792188 , 794524 , 797072 , 797437 , 797543 , 801453 , 802857 , 803263 , 812724 , 814769 , 818967 , 825248 , 825872 );
Copy