3
9.15 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
629595
629877
729941
757543
631683
808232
629600
724160
753046
750067
694366
750838
782020
646332
804782
532862
758809
430546
627254
792550
401678
741515
716167
452217
476314
590177
543446
453316
427218
514761
464258
476315
468018
573196
398567
540086
772107
426294
443134
14225
813802
671338
710916
419979
454186
469285
584044
425724
562973
473219
557406
758280
554770
454168
584012
567414
527842
601101
443622
477296
506345
453203
461731
536637
569098
568982
568989
600401
589290
]
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 (629595 , 629877 , 729941 , 757543 , 631683 , 808232 , 629600 , 724160 , 753046 , 750067 , 694366 , 750838 , 782020 , 646332 , 804782 , 532862 , 758809 , 430546 , 627254 , 792550 , 401678 , 741515 , 716167 , 452217 , 476314 , 590177 , 543446 , 453316 , 427218 , 514761 , 464258 , 476315 , 468018 , 573196 , 398567 , 540086 , 772107 , 426294 , 443134 , 14225 , 813802 , 671338 , 710916 , 419979 , 454186 , 469285 , 584044 , 425724 , 562973 , 473219 , 557406 , 758280 , 554770 , 454168 , 584012 , 567414 , 527842 , 601101 , 443622 , 477296 , 506345 , 453203 , 461731 , 536637 , 569098 , 568982 , 568989 , 600401 , 589290 );
Copy
4
2.29 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
14225
398567
401678
419979
425724
426294
427218
430546
443134
443622
452217
453203
453316
454168
454186
461731
464258
468018
469285
473219
476314
476315
477296
506345
514761
527842
532862
536637
540086
543446
554770
557406
562973
567414
568982
568989
569098
573196
584012
584044
589290
590177
600401
601101
627254
629595
629600
629877
631683
646332
671338
694366
710916
716167
724160
729941
741515
750067
750838
753046
757543
758280
758809
772107
782020
792550
804782
808232
813802
]
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 (14225 , 398567 , 401678 , 419979 , 425724 , 426294 , 427218 , 430546 , 443134 , 443622 , 452217 , 453203 , 453316 , 454168 , 454186 , 461731 , 464258 , 468018 , 469285 , 473219 , 476314 , 476315 , 477296 , 506345 , 514761 , 527842 , 532862 , 536637 , 540086 , 543446 , 554770 , 557406 , 562973 , 567414 , 568982 , 568989 , 569098 , 573196 , 584012 , 584044 , 589290 , 590177 , 600401 , 601101 , 627254 , 629595 , 629600 , 629877 , 631683 , 646332 , 671338 , 694366 , 710916 , 716167 , 724160 , 729941 , 741515 , 750067 , 750838 , 753046 , 757543 , 758280 , 758809 , 772107 , 782020 , 792550 , 804782 , 808232 , 813802 );
Copy
5
72.27 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
14225
398567
401678
419979
425724
426294
427218
430546
443134
443622
452217
453203
453316
454168
454186
461731
464258
468018
469285
473219
476314
476315
477296
506345
514761
527842
532862
536637
540086
543446
554770
557406
562973
567414
568982
568989
569098
573196
584012
584044
589290
590177
600401
601101
627254
629595
629600
629877
631683
646332
671338
694366
710916
716167
724160
729941
741515
750067
750838
753046
757543
758280
758809
772107
782020
792550
804782
808232
813802
]
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 (14225 , 398567 , 401678 , 419979 , 425724 , 426294 , 427218 , 430546 , 443134 , 443622 , 452217 , 453203 , 453316 , 454168 , 454186 , 461731 , 464258 , 468018 , 469285 , 473219 , 476314 , 476315 , 477296 , 506345 , 514761 , 527842 , 532862 , 536637 , 540086 , 543446 , 554770 , 557406 , 562973 , 567414 , 568982 , 568989 , 569098 , 573196 , 584012 , 584044 , 589290 , 590177 , 600401 , 601101 , 627254 , 629595 , 629600 , 629877 , 631683 , 646332 , 671338 , 694366 , 710916 , 716167 , 724160 , 729941 , 741515 , 750067 , 750838 , 753046 , 757543 , 758280 , 758809 , 772107 , 782020 , 792550 , 804782 , 808232 , 813802 );
Copy