4
14.29 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
475072
554805
479820
522110
495647
462079
423205
414581
473728
516073
518313
518545
515959
544474
584024
440345
453100
479049
419555
458694
452058
474681
457160
476856
415134
526906
487938
519318
580277
423816
424660
443784
516625
514469
473472
475796
549176
419914
518549
541081
603388
464619
510742
421871
452251
526515
439684
424459
426818
433323
523392
509033
463122
579592
421890
474024
465525
419550
556505
476797
552342
529345
480297
439676
466310
415798
439785
439812
494980
503026
526373
424469
485454
474857
491802
]
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 (475072 , 554805 , 479820 , 522110 , 495647 , 462079 , 423205 , 414581 , 473728 , 516073 , 518313 , 518545 , 515959 , 544474 , 584024 , 440345 , 453100 , 479049 , 419555 , 458694 , 452058 , 474681 , 457160 , 476856 , 415134 , 526906 , 487938 , 519318 , 580277 , 423816 , 424660 , 443784 , 516625 , 514469 , 473472 , 475796 , 549176 , 419914 , 518549 , 541081 , 603388 , 464619 , 510742 , 421871 , 452251 , 526515 , 439684 , 424459 , 426818 , 433323 , 523392 , 509033 , 463122 , 579592 , 421890 , 474024 , 465525 , 419550 , 556505 , 476797 , 552342 , 529345 , 480297 , 439676 , 466310 , 415798 , 439785 , 439812 , 494980 , 503026 , 526373 , 424469 , 485454 , 474857 , 491802 );
Copy
5
2.46 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
414581
415134
415798
419550
419555
419914
421871
421890
423205
423816
424459
424469
424660
426818
433323
439676
439684
439785
439812
440345
443784
452058
452251
453100
457160
458694
462079
463122
464619
465525
466310
473472
473728
474024
474681
474857
475072
475796
476797
476856
479049
479820
480297
485454
487938
491802
494980
495647
503026
509033
510742
514469
515959
516073
516625
518313
518545
518549
519318
522110
523392
526373
526515
526906
529345
541081
544474
549176
552342
554805
556505
579592
580277
584024
603388
]
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 (414581 , 415134 , 415798 , 419550 , 419555 , 419914 , 421871 , 421890 , 423205 , 423816 , 424459 , 424469 , 424660 , 426818 , 433323 , 439676 , 439684 , 439785 , 439812 , 440345 , 443784 , 452058 , 452251 , 453100 , 457160 , 458694 , 462079 , 463122 , 464619 , 465525 , 466310 , 473472 , 473728 , 474024 , 474681 , 474857 , 475072 , 475796 , 476797 , 476856 , 479049 , 479820 , 480297 , 485454 , 487938 , 491802 , 494980 , 495647 , 503026 , 509033 , 510742 , 514469 , 515959 , 516073 , 516625 , 518313 , 518545 , 518549 , 519318 , 522110 , 523392 , 526373 , 526515 , 526906 , 529345 , 541081 , 544474 , 549176 , 552342 , 554805 , 556505 , 579592 , 580277 , 584024 , 603388 );
Copy
6
129.37 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
414581
415134
415798
419550
419555
419914
421871
421890
423205
423816
424459
424469
424660
426818
433323
439676
439684
439785
439812
440345
443784
452058
452251
453100
457160
458694
462079
463122
464619
465525
466310
473472
473728
474024
474681
474857
475072
475796
476797
476856
479049
479820
480297
485454
487938
491802
494980
495647
503026
509033
510742
514469
515959
516073
516625
518313
518545
518549
519318
522110
523392
526373
526515
526906
529345
541081
544474
549176
552342
554805
556505
579592
580277
584024
603388
]
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 (414581 , 415134 , 415798 , 419550 , 419555 , 419914 , 421871 , 421890 , 423205 , 423816 , 424459 , 424469 , 424660 , 426818 , 433323 , 439676 , 439684 , 439785 , 439812 , 440345 , 443784 , 452058 , 452251 , 453100 , 457160 , 458694 , 462079 , 463122 , 464619 , 465525 , 466310 , 473472 , 473728 , 474024 , 474681 , 474857 , 475072 , 475796 , 476797 , 476856 , 479049 , 479820 , 480297 , 485454 , 487938 , 491802 , 494980 , 495647 , 503026 , 509033 , 510742 , 514469 , 515959 , 516073 , 516625 , 518313 , 518545 , 518549 , 519318 , 522110 , 523392 , 526373 , 526515 , 526906 , 529345 , 541081 , 544474 , 549176 , 552342 , 554805 , 556505 , 579592 , 580277 , 584024 , 603388 );
Copy