3
15.86 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
454398
467567
471322
478260
446845
472172
522033
411449
464367
453992
479889
654270
680787
651668
671235
636360
727799
720241
456750
446418
460026
444958
459202
467620
479273
507184
395563
438711
479217
479863
510874
536154
501203
584197
622114
753496
721109
479520
437585
452277
447670
462144
462564
412419
459433
525547
524414
460693
500497
514661
496527
581673
624110
641910
641901
429810
458182
517372
507310
618596
718695
514659
519927
543425
720298
733204
458183
476022
558441
586554
614720
581433
583723
591415
]
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 (454398 , 467567 , 471322 , 478260 , 446845 , 472172 , 522033 , 411449 , 464367 , 453992 , 479889 , 654270 , 680787 , 651668 , 671235 , 636360 , 727799 , 720241 , 456750 , 446418 , 460026 , 444958 , 459202 , 467620 , 479273 , 507184 , 395563 , 438711 , 479217 , 479863 , 510874 , 536154 , 501203 , 584197 , 622114 , 753496 , 721109 , 479520 , 437585 , 452277 , 447670 , 462144 , 462564 , 412419 , 459433 , 525547 , 524414 , 460693 , 500497 , 514661 , 496527 , 581673 , 624110 , 641910 , 641901 , 429810 , 458182 , 517372 , 507310 , 618596 , 718695 , 514659 , 519927 , 543425 , 720298 , 733204 , 458183 , 476022 , 558441 , 586554 , 614720 , 581433 , 583723 , 591415 );
Copy
4
2.28 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
395563
411449
412419
429810
437585
438711
444958
446418
446845
447670
452277
453992
454398
456750
458182
458183
459202
459433
460026
460693
462144
462564
464367
467567
467620
471322
472172
476022
478260
479217
479273
479520
479863
479889
496527
500497
501203
507184
507310
510874
514659
514661
517372
519927
522033
524414
525547
536154
543425
558441
581433
581673
583723
584197
586554
591415
614720
618596
622114
624110
636360
641901
641910
651668
654270
671235
680787
718695
720241
720298
721109
727799
733204
753496
]
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 (395563 , 411449 , 412419 , 429810 , 437585 , 438711 , 444958 , 446418 , 446845 , 447670 , 452277 , 453992 , 454398 , 456750 , 458182 , 458183 , 459202 , 459433 , 460026 , 460693 , 462144 , 462564 , 464367 , 467567 , 467620 , 471322 , 472172 , 476022 , 478260 , 479217 , 479273 , 479520 , 479863 , 479889 , 496527 , 500497 , 501203 , 507184 , 507310 , 510874 , 514659 , 514661 , 517372 , 519927 , 522033 , 524414 , 525547 , 536154 , 543425 , 558441 , 581433 , 581673 , 583723 , 584197 , 586554 , 591415 , 614720 , 618596 , 622114 , 624110 , 636360 , 641901 , 641910 , 651668 , 654270 , 671235 , 680787 , 718695 , 720241 , 720298 , 721109 , 727799 , 733204 , 753496 );
Copy
5
106.57 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
395563
411449
412419
429810
437585
438711
444958
446418
446845
447670
452277
453992
454398
456750
458182
458183
459202
459433
460026
460693
462144
462564
464367
467567
467620
471322
472172
476022
478260
479217
479273
479520
479863
479889
496527
500497
501203
507184
507310
510874
514659
514661
517372
519927
522033
524414
525547
536154
543425
558441
581433
581673
583723
584197
586554
591415
614720
618596
622114
624110
636360
641901
641910
651668
654270
671235
680787
718695
720241
720298
721109
727799
733204
753496
]
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 (395563 , 411449 , 412419 , 429810 , 437585 , 438711 , 444958 , 446418 , 446845 , 447670 , 452277 , 453992 , 454398 , 456750 , 458182 , 458183 , 459202 , 459433 , 460026 , 460693 , 462144 , 462564 , 464367 , 467567 , 467620 , 471322 , 472172 , 476022 , 478260 , 479217 , 479273 , 479520 , 479863 , 479889 , 496527 , 500497 , 501203 , 507184 , 507310 , 510874 , 514659 , 514661 , 517372 , 519927 , 522033 , 524414 , 525547 , 536154 , 543425 , 558441 , 581433 , 581673 , 583723 , 584197 , 586554 , 591415 , 614720 , 618596 , 622114 , 624110 , 636360 , 641901 , 641910 , 651668 , 654270 , 671235 , 680787 , 718695 , 720241 , 720298 , 721109 , 727799 , 733204 , 753496 );
Copy