3
11.02 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
578427
596011
769595
806093
647682
494247
630597
806126
806122
806089
413982
596021
596053
422813
530006
534755
596017
595986
281095
578426
407877
596025
489244
409364
806175
398529
410745
407600
153490
422806
114360
397479
401109
816376
445480
409048
492106
445914
67294
398864
816584
401466
401865
815393
406587
815269
385818
187195
395132
417916
405411
407762
454778
480411
388053
822692
445748
446141
452144
591306
511791
462485
497356
]
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 (578427 , 596011 , 769595 , 806093 , 647682 , 494247 , 630597 , 806126 , 806122 , 806089 , 413982 , 596021 , 596053 , 422813 , 530006 , 534755 , 596017 , 595986 , 281095 , 578426 , 407877 , 596025 , 489244 , 409364 , 806175 , 398529 , 410745 , 407600 , 153490 , 422806 , 114360 , 397479 , 401109 , 816376 , 445480 , 409048 , 492106 , 445914 , 67294 , 398864 , 816584 , 401466 , 401865 , 815393 , 406587 , 815269 , 385818 , 187195 , 395132 , 417916 , 405411 , 407762 , 454778 , 480411 , 388053 , 822692 , 445748 , 446141 , 452144 , 591306 , 511791 , 462485 , 497356 );
Copy
4
2.84 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
67294
114360
153490
187195
281095
385818
388053
395132
397479
398529
398864
401109
401466
401865
405411
406587
407600
407762
407877
409048
409364
410745
413982
417916
422806
422813
445480
445748
445914
446141
452144
454778
462485
480411
489244
492106
494247
497356
511791
530006
534755
578426
578427
591306
595986
596011
596017
596021
596025
596053
630597
647682
769595
806089
806093
806122
806126
806175
815269
815393
816376
816584
822692
]
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 (67294 , 114360 , 153490 , 187195 , 281095 , 385818 , 388053 , 395132 , 397479 , 398529 , 398864 , 401109 , 401466 , 401865 , 405411 , 406587 , 407600 , 407762 , 407877 , 409048 , 409364 , 410745 , 413982 , 417916 , 422806 , 422813 , 445480 , 445748 , 445914 , 446141 , 452144 , 454778 , 462485 , 480411 , 489244 , 492106 , 494247 , 497356 , 511791 , 530006 , 534755 , 578426 , 578427 , 591306 , 595986 , 596011 , 596017 , 596021 , 596025 , 596053 , 630597 , 647682 , 769595 , 806089 , 806093 , 806122 , 806126 , 806175 , 815269 , 815393 , 816376 , 816584 , 822692 );
Copy
5
119.24 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
67294
114360
153490
187195
281095
385818
388053
395132
397479
398529
398864
401109
401466
401865
405411
406587
407600
407762
407877
409048
409364
410745
413982
417916
422806
422813
445480
445748
445914
446141
452144
454778
462485
480411
489244
492106
494247
497356
511791
530006
534755
578426
578427
591306
595986
596011
596017
596021
596025
596053
630597
647682
769595
806089
806093
806122
806126
806175
815269
815393
816376
816584
822692
]
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 (67294 , 114360 , 153490 , 187195 , 281095 , 385818 , 388053 , 395132 , 397479 , 398529 , 398864 , 401109 , 401466 , 401865 , 405411 , 406587 , 407600 , 407762 , 407877 , 409048 , 409364 , 410745 , 413982 , 417916 , 422806 , 422813 , 445480 , 445748 , 445914 , 446141 , 452144 , 454778 , 462485 , 480411 , 489244 , 492106 , 494247 , 497356 , 511791 , 530006 , 534755 , 578426 , 578427 , 591306 , 595986 , 596011 , 596017 , 596021 , 596025 , 596053 , 630597 , 647682 , 769595 , 806089 , 806093 , 806122 , 806126 , 806175 , 815269 , 815393 , 816376 , 816584 , 822692 );
Copy