4
15.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
488454
465247
508072
534604
581213
583866
571086
665728
714925
722934
708551
587974
636403
758865
784583
420513
454625
486610
442524
427971
467936
464804
563692
652213
680267
549739
592402
598899
616910
422273
456208
483210
528474
418440
434774
445883
447948
527009
580807
557569
663769
790397
612699
643013
438013
517405
404693
429383
444851
457132
507284
498623
564541
483553
457884
536903
530630
545245
710524
478973
502779
414315
486871
553031
]
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 (488454 , 465247 , 508072 , 534604 , 581213 , 583866 , 571086 , 665728 , 714925 , 722934 , 708551 , 587974 , 636403 , 758865 , 784583 , 420513 , 454625 , 486610 , 442524 , 427971 , 467936 , 464804 , 563692 , 652213 , 680267 , 549739 , 592402 , 598899 , 616910 , 422273 , 456208 , 483210 , 528474 , 418440 , 434774 , 445883 , 447948 , 527009 , 580807 , 557569 , 663769 , 790397 , 612699 , 643013 , 438013 , 517405 , 404693 , 429383 , 444851 , 457132 , 507284 , 498623 , 564541 , 483553 , 457884 , 536903 , 530630 , 545245 , 710524 , 478973 , 502779 , 414315 , 486871 , 553031 );
Copy
5
2.90 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
404693
414315
418440
420513
422273
427971
429383
434774
438013
442524
444851
445883
447948
454625
456208
457132
457884
464804
465247
467936
478973
483210
483553
486610
486871
488454
498623
502779
507284
508072
517405
527009
528474
530630
534604
536903
545245
549739
553031
557569
563692
564541
571086
580807
581213
583866
587974
592402
598899
612699
616910
636403
643013
652213
663769
665728
680267
708551
710524
714925
722934
758865
784583
790397
]
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 (404693 , 414315 , 418440 , 420513 , 422273 , 427971 , 429383 , 434774 , 438013 , 442524 , 444851 , 445883 , 447948 , 454625 , 456208 , 457132 , 457884 , 464804 , 465247 , 467936 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 498623 , 502779 , 507284 , 508072 , 517405 , 527009 , 528474 , 530630 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 563692 , 564541 , 571086 , 580807 , 581213 , 583866 , 587974 , 592402 , 598899 , 612699 , 616910 , 636403 , 643013 , 652213 , 663769 , 665728 , 680267 , 708551 , 710524 , 714925 , 722934 , 758865 , 784583 , 790397 );
Copy
6
101.17 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
404693
414315
418440
420513
422273
427971
429383
434774
438013
442524
444851
445883
447948
454625
456208
457132
457884
464804
465247
467936
478973
483210
483553
486610
486871
488454
498623
502779
507284
508072
517405
527009
528474
530630
534604
536903
545245
549739
553031
557569
563692
564541
571086
580807
581213
583866
587974
592402
598899
612699
616910
636403
643013
652213
663769
665728
680267
708551
710524
714925
722934
758865
784583
790397
]
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 (404693 , 414315 , 418440 , 420513 , 422273 , 427971 , 429383 , 434774 , 438013 , 442524 , 444851 , 445883 , 447948 , 454625 , 456208 , 457132 , 457884 , 464804 , 465247 , 467936 , 478973 , 483210 , 483553 , 486610 , 486871 , 488454 , 498623 , 502779 , 507284 , 508072 , 517405 , 527009 , 528474 , 530630 , 534604 , 536903 , 545245 , 549739 , 553031 , 557569 , 563692 , 564541 , 571086 , 580807 , 581213 , 583866 , 587974 , 592402 , 598899 , 612699 , 616910 , 636403 , 643013 , 652213 , 663769 , 665728 , 680267 , 708551 , 710524 , 714925 , 722934 , 758865 , 784583 , 790397 );
Copy