3
9.88 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
588246
651644
605485
696289
538832
668158
742152
677064
596841
759551
567467
545109
617171
605029
545210
681530
609589
426365
550831
489468
536977
729217
732793
745526
640727
472320
398040
537564
679856
701463
544261
651421
698086
612427
632513
587997
728720
603560
632502
459159
463176
470529
513265
469494
545739
545187
602443
593894
590602
473293
470561
492040
444315
443991
470546
558522
581300
470913
502539
659025
416233
509713
584644
603166
]
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 (588246 , 651644 , 605485 , 696289 , 538832 , 668158 , 742152 , 677064 , 596841 , 759551 , 567467 , 545109 , 617171 , 605029 , 545210 , 681530 , 609589 , 426365 , 550831 , 489468 , 536977 , 729217 , 732793 , 745526 , 640727 , 472320 , 398040 , 537564 , 679856 , 701463 , 544261 , 651421 , 698086 , 612427 , 632513 , 587997 , 728720 , 603560 , 632502 , 459159 , 463176 , 470529 , 513265 , 469494 , 545739 , 545187 , 602443 , 593894 , 590602 , 473293 , 470561 , 492040 , 444315 , 443991 , 470546 , 558522 , 581300 , 470913 , 502539 , 659025 , 416233 , 509713 , 584644 , 603166 );
Copy
4
211.60 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
398040
416233
426365
443991
444315
459159
463176
469494
470529
470546
470561
470913
472320
473293
489468
492040
502539
509713
513265
536977
537564
538832
544261
545109
545187
545210
545739
550831
558522
567467
581300
584644
587997
588246
590602
593894
596841
602443
603166
603560
605029
605485
609589
612427
617171
632502
632513
640727
651421
651644
659025
668158
677064
679856
681530
696289
698086
701463
728720
729217
732793
742152
745526
759551
]
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 (398040 , 416233 , 426365 , 443991 , 444315 , 459159 , 463176 , 469494 , 470529 , 470546 , 470561 , 470913 , 472320 , 473293 , 489468 , 492040 , 502539 , 509713 , 513265 , 536977 , 537564 , 538832 , 544261 , 545109 , 545187 , 545210 , 545739 , 550831 , 558522 , 567467 , 581300 , 584644 , 587997 , 588246 , 590602 , 593894 , 596841 , 602443 , 603166 , 603560 , 605029 , 605485 , 609589 , 612427 , 617171 , 632502 , 632513 , 640727 , 651421 , 651644 , 659025 , 668158 , 677064 , 679856 , 681530 , 696289 , 698086 , 701463 , 728720 , 729217 , 732793 , 742152 , 745526 , 759551 );
Copy
5
118.10 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
398040
416233
426365
443991
444315
459159
463176
469494
470529
470546
470561
470913
472320
473293
489468
492040
502539
509713
513265
536977
537564
538832
544261
545109
545187
545210
545739
550831
558522
567467
581300
584644
587997
588246
590602
593894
596841
602443
603166
603560
605029
605485
609589
612427
617171
632502
632513
640727
651421
651644
659025
668158
677064
679856
681530
696289
698086
701463
728720
729217
732793
742152
745526
759551
]
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 (398040 , 416233 , 426365 , 443991 , 444315 , 459159 , 463176 , 469494 , 470529 , 470546 , 470561 , 470913 , 472320 , 473293 , 489468 , 492040 , 502539 , 509713 , 513265 , 536977 , 537564 , 538832 , 544261 , 545109 , 545187 , 545210 , 545739 , 550831 , 558522 , 567467 , 581300 , 584644 , 587997 , 588246 , 590602 , 593894 , 596841 , 602443 , 603166 , 603560 , 605029 , 605485 , 609589 , 612427 , 617171 , 632502 , 632513 , 640727 , 651421 , 651644 , 659025 , 668158 , 677064 , 679856 , 681530 , 696289 , 698086 , 701463 , 728720 , 729217 , 732793 , 742152 , 745526 , 759551 );
Copy