3
11.56 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
827887
552927
742272
610806
563710
454041
522413
564490
730936
728716
460600
425648
468045
504019
505348
524286
647911
728255
464563
394514
8716
428556
466813
794162
483726
496719
496718
526723
546116
546115
546914
666869
454528
528053
489330
442218
457853
462478
547790
570928
607023
446122
517599
489301
509292
558788
452244
487262
538170
460644
555979
591338
527152
491963
459944
540549
469116
598334
514110
514916
617167
524029
527005
470028
639060
]
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 (827887 , 552927 , 742272 , 610806 , 563710 , 454041 , 522413 , 564490 , 730936 , 728716 , 460600 , 425648 , 468045 , 504019 , 505348 , 524286 , 647911 , 728255 , 464563 , 394514 , 8716 , 428556 , 466813 , 794162 , 483726 , 496719 , 496718 , 526723 , 546116 , 546115 , 546914 , 666869 , 454528 , 528053 , 489330 , 442218 , 457853 , 462478 , 547790 , 570928 , 607023 , 446122 , 517599 , 489301 , 509292 , 558788 , 452244 , 487262 , 538170 , 460644 , 555979 , 591338 , 527152 , 491963 , 459944 , 540549 , 469116 , 598334 , 514110 , 514916 , 617167 , 524029 , 527005 , 470028 , 639060 );
Copy
4
2.54 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
8716
394514
425648
428556
442218
446122
452244
454041
454528
457853
459944
460600
460644
462478
464563
466813
468045
469116
470028
483726
487262
489301
489330
491963
496718
496719
504019
505348
509292
514110
514916
517599
522413
524029
524286
526723
527005
527152
528053
538170
540549
546115
546116
546914
547790
552927
555979
558788
563710
564490
570928
591338
598334
607023
610806
617167
639060
647911
666869
728255
728716
730936
742272
794162
827887
]
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 (8716 , 394514 , 425648 , 428556 , 442218 , 446122 , 452244 , 454041 , 454528 , 457853 , 459944 , 460600 , 460644 , 462478 , 464563 , 466813 , 468045 , 469116 , 470028 , 483726 , 487262 , 489301 , 489330 , 491963 , 496718 , 496719 , 504019 , 505348 , 509292 , 514110 , 514916 , 517599 , 522413 , 524029 , 524286 , 526723 , 527005 , 527152 , 528053 , 538170 , 540549 , 546115 , 546116 , 546914 , 547790 , 552927 , 555979 , 558788 , 563710 , 564490 , 570928 , 591338 , 598334 , 607023 , 610806 , 617167 , 639060 , 647911 , 666869 , 728255 , 728716 , 730936 , 742272 , 794162 , 827887 );
Copy
5
72.68 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
8716
394514
425648
428556
442218
446122
452244
454041
454528
457853
459944
460600
460644
462478
464563
466813
468045
469116
470028
483726
487262
489301
489330
491963
496718
496719
504019
505348
509292
514110
514916
517599
522413
524029
524286
526723
527005
527152
528053
538170
540549
546115
546116
546914
547790
552927
555979
558788
563710
564490
570928
591338
598334
607023
610806
617167
639060
647911
666869
728255
728716
730936
742272
794162
827887
]
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 (8716 , 394514 , 425648 , 428556 , 442218 , 446122 , 452244 , 454041 , 454528 , 457853 , 459944 , 460600 , 460644 , 462478 , 464563 , 466813 , 468045 , 469116 , 470028 , 483726 , 487262 , 489301 , 489330 , 491963 , 496718 , 496719 , 504019 , 505348 , 509292 , 514110 , 514916 , 517599 , 522413 , 524029 , 524286 , 526723 , 527005 , 527152 , 528053 , 538170 , 540549 , 546115 , 546116 , 546914 , 547790 , 552927 , 555979 , 558788 , 563710 , 564490 , 570928 , 591338 , 598334 , 607023 , 610806 , 617167 , 639060 , 647911 , 666869 , 728255 , 728716 , 730936 , 742272 , 794162 , 827887 );
Copy