3
12.52 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
744088
403628
457926
495851
421424
542493
650076
707510
651376
616931
633322
785188
771348
756798
459092
513425
441912
458835
459193
493937
543932
581946
557729
697121
697166
700732
710275
588381
595278
614927
796663
801026
759567
760767
708964
450876
449647
456311
519360
395273
456538
478141
500240
593259
793073
450529
479469
493453
522474
446413
502195
684660
592961
520150
521665
427601
451780
458975
586290
634312
601395
598247
490723
496285
524345
449384
426789
515578
495778
487926
]
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 (744088 , 403628 , 457926 , 495851 , 421424 , 542493 , 650076 , 707510 , 651376 , 616931 , 633322 , 785188 , 771348 , 756798 , 459092 , 513425 , 441912 , 458835 , 459193 , 493937 , 543932 , 581946 , 557729 , 697121 , 697166 , 700732 , 710275 , 588381 , 595278 , 614927 , 796663 , 801026 , 759567 , 760767 , 708964 , 450876 , 449647 , 456311 , 519360 , 395273 , 456538 , 478141 , 500240 , 593259 , 793073 , 450529 , 479469 , 493453 , 522474 , 446413 , 502195 , 684660 , 592961 , 520150 , 521665 , 427601 , 451780 , 458975 , 586290 , 634312 , 601395 , 598247 , 490723 , 496285 , 524345 , 449384 , 426789 , 515578 , 495778 , 487926 );
Copy
4
3.60 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
395273
403628
421424
426789
427601
441912
446413
449384
449647
450529
450876
451780
456311
456538
457926
458835
458975
459092
459193
478141
479469
487926
490723
493453
493937
495778
495851
496285
500240
502195
513425
515578
519360
520150
521665
522474
524345
542493
543932
557729
581946
586290
588381
592961
593259
595278
598247
601395
614927
616931
633322
634312
650076
651376
684660
697121
697166
700732
707510
708964
710275
744088
756798
759567
760767
771348
785188
793073
796663
801026
]
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 (395273 , 403628 , 421424 , 426789 , 427601 , 441912 , 446413 , 449384 , 449647 , 450529 , 450876 , 451780 , 456311 , 456538 , 457926 , 458835 , 458975 , 459092 , 459193 , 478141 , 479469 , 487926 , 490723 , 493453 , 493937 , 495778 , 495851 , 496285 , 500240 , 502195 , 513425 , 515578 , 519360 , 520150 , 521665 , 522474 , 524345 , 542493 , 543932 , 557729 , 581946 , 586290 , 588381 , 592961 , 593259 , 595278 , 598247 , 601395 , 614927 , 616931 , 633322 , 634312 , 650076 , 651376 , 684660 , 697121 , 697166 , 700732 , 707510 , 708964 , 710275 , 744088 , 756798 , 759567 , 760767 , 771348 , 785188 , 793073 , 796663 , 801026 );
Copy
5
75.93 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
395273
403628
421424
426789
427601
441912
446413
449384
449647
450529
450876
451780
456311
456538
457926
458835
458975
459092
459193
478141
479469
487926
490723
493453
493937
495778
495851
496285
500240
502195
513425
515578
519360
520150
521665
522474
524345
542493
543932
557729
581946
586290
588381
592961
593259
595278
598247
601395
614927
616931
633322
634312
650076
651376
684660
697121
697166
700732
707510
708964
710275
744088
756798
759567
760767
771348
785188
793073
796663
801026
]
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 (395273 , 403628 , 421424 , 426789 , 427601 , 441912 , 446413 , 449384 , 449647 , 450529 , 450876 , 451780 , 456311 , 456538 , 457926 , 458835 , 458975 , 459092 , 459193 , 478141 , 479469 , 487926 , 490723 , 493453 , 493937 , 495778 , 495851 , 496285 , 500240 , 502195 , 513425 , 515578 , 519360 , 520150 , 521665 , 522474 , 524345 , 542493 , 543932 , 557729 , 581946 , 586290 , 588381 , 592961 , 593259 , 595278 , 598247 , 601395 , 614927 , 616931 , 633322 , 634312 , 650076 , 651376 , 684660 , 697121 , 697166 , 700732 , 707510 , 708964 , 710275 , 744088 , 756798 , 759567 , 760767 , 771348 , 785188 , 793073 , 796663 , 801026 );
Copy