3
19.04 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
589068
591706
601340
610575
621732
591284
602923
612348
614479
617004
626218
636174
613318
621340
628068
608771
612434
620686
475294
476907
464566
479629
512050
516254
523565
526439
495753
497171
497452
517492
521710
524256
525745
529162
529367
485464
519617
527124
578454
584720
652281
557235
585716
643316
591135
591739
611392
615449
610695
609958
623357
418686
472597
506606
507421
488823
519023
503840
529390
559378
565186
598215
513141
532482
]
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 (589068 , 591706 , 601340 , 610575 , 621732 , 591284 , 602923 , 612348 , 614479 , 617004 , 626218 , 636174 , 613318 , 621340 , 628068 , 608771 , 612434 , 620686 , 475294 , 476907 , 464566 , 479629 , 512050 , 516254 , 523565 , 526439 , 495753 , 497171 , 497452 , 517492 , 521710 , 524256 , 525745 , 529162 , 529367 , 485464 , 519617 , 527124 , 578454 , 584720 , 652281 , 557235 , 585716 , 643316 , 591135 , 591739 , 611392 , 615449 , 610695 , 609958 , 623357 , 418686 , 472597 , 506606 , 507421 , 488823 , 519023 , 503840 , 529390 , 559378 , 565186 , 598215 , 513141 , 532482 );
Copy
4
2.83 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
418686
464566
472597
475294
476907
479629
485464
488823
495753
497171
497452
503840
506606
507421
512050
513141
516254
517492
519023
519617
521710
523565
524256
525745
526439
527124
529162
529367
529390
532482
557235
559378
565186
578454
584720
585716
589068
591135
591284
591706
591739
598215
601340
602923
608771
609958
610575
610695
611392
612348
612434
613318
614479
615449
617004
620686
621340
621732
623357
626218
628068
636174
643316
652281
]
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 (418686 , 464566 , 472597 , 475294 , 476907 , 479629 , 485464 , 488823 , 495753 , 497171 , 497452 , 503840 , 506606 , 507421 , 512050 , 513141 , 516254 , 517492 , 519023 , 519617 , 521710 , 523565 , 524256 , 525745 , 526439 , 527124 , 529162 , 529367 , 529390 , 532482 , 557235 , 559378 , 565186 , 578454 , 584720 , 585716 , 589068 , 591135 , 591284 , 591706 , 591739 , 598215 , 601340 , 602923 , 608771 , 609958 , 610575 , 610695 , 611392 , 612348 , 612434 , 613318 , 614479 , 615449 , 617004 , 620686 , 621340 , 621732 , 623357 , 626218 , 628068 , 636174 , 643316 , 652281 );
Copy
5
106.52 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
418686
464566
472597
475294
476907
479629
485464
488823
495753
497171
497452
503840
506606
507421
512050
513141
516254
517492
519023
519617
521710
523565
524256
525745
526439
527124
529162
529367
529390
532482
557235
559378
565186
578454
584720
585716
589068
591135
591284
591706
591739
598215
601340
602923
608771
609958
610575
610695
611392
612348
612434
613318
614479
615449
617004
620686
621340
621732
623357
626218
628068
636174
643316
652281
]
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 (418686 , 464566 , 472597 , 475294 , 476907 , 479629 , 485464 , 488823 , 495753 , 497171 , 497452 , 503840 , 506606 , 507421 , 512050 , 513141 , 516254 , 517492 , 519023 , 519617 , 521710 , 523565 , 524256 , 525745 , 526439 , 527124 , 529162 , 529367 , 529390 , 532482 , 557235 , 559378 , 565186 , 578454 , 584720 , 585716 , 589068 , 591135 , 591284 , 591706 , 591739 , 598215 , 601340 , 602923 , 608771 , 609958 , 610575 , 610695 , 611392 , 612348 , 612434 , 613318 , 614479 , 615449 , 617004 , 620686 , 621340 , 621732 , 623357 , 626218 , 628068 , 636174 , 643316 , 652281 );
Copy