4
12.75 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
603421
627063
787488
798107
805696
732964
441928
441873
420670
516161
508105
512234
817288
476237
516812
543084
552357
581351
552046
552360
666475
696429
551063
566911
580797
626312
595575
602504
623476
387121
519719
487405
495678
463223
561398
564213
541649
574576
603970
629762
590695
740690
756962
455449
440591
407800
522847
578034
593515
630609
469633
524967
191252
448870
532349
543921
551053
573355
564772
582697
456684
533610
522914
527598
519248
543917
417396
510695
674967
625439
512176
621259
]
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 (603421 , 627063 , 787488 , 798107 , 805696 , 732964 , 441928 , 441873 , 420670 , 516161 , 508105 , 512234 , 817288 , 476237 , 516812 , 543084 , 552357 , 581351 , 552046 , 552360 , 666475 , 696429 , 551063 , 566911 , 580797 , 626312 , 595575 , 602504 , 623476 , 387121 , 519719 , 487405 , 495678 , 463223 , 561398 , 564213 , 541649 , 574576 , 603970 , 629762 , 590695 , 740690 , 756962 , 455449 , 440591 , 407800 , 522847 , 578034 , 593515 , 630609 , 469633 , 524967 , 191252 , 448870 , 532349 , 543921 , 551053 , 573355 , 564772 , 582697 , 456684 , 533610 , 522914 , 527598 , 519248 , 543917 , 417396 , 510695 , 674967 , 625439 , 512176 , 621259 );
Copy
5
2.50 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
191252
387121
407800
417396
420670
440591
441873
441928
448870
455449
456684
463223
469633
476237
487405
495678
508105
510695
512176
512234
516161
516812
519248
519719
522847
522914
524967
527598
532349
533610
541649
543084
543917
543921
551053
551063
552046
552357
552360
561398
564213
564772
566911
573355
574576
578034
580797
581351
582697
590695
593515
595575
602504
603421
603970
621259
623476
625439
626312
627063
629762
630609
666475
674967
696429
732964
740690
756962
787488
798107
805696
817288
]
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 (191252 , 387121 , 407800 , 417396 , 420670 , 440591 , 441873 , 441928 , 448870 , 455449 , 456684 , 463223 , 469633 , 476237 , 487405 , 495678 , 508105 , 510695 , 512176 , 512234 , 516161 , 516812 , 519248 , 519719 , 522847 , 522914 , 524967 , 527598 , 532349 , 533610 , 541649 , 543084 , 543917 , 543921 , 551053 , 551063 , 552046 , 552357 , 552360 , 561398 , 564213 , 564772 , 566911 , 573355 , 574576 , 578034 , 580797 , 581351 , 582697 , 590695 , 593515 , 595575 , 602504 , 603421 , 603970 , 621259 , 623476 , 625439 , 626312 , 627063 , 629762 , 630609 , 666475 , 674967 , 696429 , 732964 , 740690 , 756962 , 787488 , 798107 , 805696 , 817288 );
Copy
6
92.66 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
191252
387121
407800
417396
420670
440591
441873
441928
448870
455449
456684
463223
469633
476237
487405
495678
508105
510695
512176
512234
516161
516812
519248
519719
522847
522914
524967
527598
532349
533610
541649
543084
543917
543921
551053
551063
552046
552357
552360
561398
564213
564772
566911
573355
574576
578034
580797
581351
582697
590695
593515
595575
602504
603421
603970
621259
623476
625439
626312
627063
629762
630609
666475
674967
696429
732964
740690
756962
787488
798107
805696
817288
]
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 (191252 , 387121 , 407800 , 417396 , 420670 , 440591 , 441873 , 441928 , 448870 , 455449 , 456684 , 463223 , 469633 , 476237 , 487405 , 495678 , 508105 , 510695 , 512176 , 512234 , 516161 , 516812 , 519248 , 519719 , 522847 , 522914 , 524967 , 527598 , 532349 , 533610 , 541649 , 543084 , 543917 , 543921 , 551053 , 551063 , 552046 , 552357 , 552360 , 561398 , 564213 , 564772 , 566911 , 573355 , 574576 , 578034 , 580797 , 581351 , 582697 , 590695 , 593515 , 595575 , 602504 , 603421 , 603970 , 621259 , 623476 , 625439 , 626312 , 627063 , 629762 , 630609 , 666475 , 674967 , 696429 , 732964 , 740690 , 756962 , 787488 , 798107 , 805696 , 817288 );
Copy