3
11.00 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
483767
499000
473918
599449
824533
824733
492004
778490
462160
618807
482437
420669
481399
422365
502943
525141
613782
470496
619312
444262
715417
757206
519925
568592
528230
556482
464563
546914
595601
470681
461778
511453
528160
481465
697196
518926
494600
446336
422426
549174
489725
451521
672887
581953
589431
517392
786486
542784
517599
617346
422351
509292
489301
547790
591155
427137
481401
517417
514110
489330
470028
524029
626478
468965
419628
593689
]
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 (483767 , 499000 , 473918 , 599449 , 824533 , 824733 , 492004 , 778490 , 462160 , 618807 , 482437 , 420669 , 481399 , 422365 , 502943 , 525141 , 613782 , 470496 , 619312 , 444262 , 715417 , 757206 , 519925 , 568592 , 528230 , 556482 , 464563 , 546914 , 595601 , 470681 , 461778 , 511453 , 528160 , 481465 , 697196 , 518926 , 494600 , 446336 , 422426 , 549174 , 489725 , 451521 , 672887 , 581953 , 589431 , 517392 , 786486 , 542784 , 517599 , 617346 , 422351 , 509292 , 489301 , 547790 , 591155 , 427137 , 481401 , 517417 , 514110 , 489330 , 470028 , 524029 , 626478 , 468965 , 419628 , 593689 );
Copy
4
3.12 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
419628
420669
422351
422365
422426
427137
444262
446336
451521
461778
462160
464563
468965
470028
470496
470681
473918
481399
481401
481465
482437
483767
489301
489330
489725
492004
494600
499000
502943
509292
511453
514110
517392
517417
517599
518926
519925
524029
525141
528160
528230
542784
546914
547790
549174
556482
568592
581953
589431
591155
593689
595601
599449
613782
617346
618807
619312
626478
672887
697196
715417
757206
778490
786486
824533
824733
]
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 (419628 , 420669 , 422351 , 422365 , 422426 , 427137 , 444262 , 446336 , 451521 , 461778 , 462160 , 464563 , 468965 , 470028 , 470496 , 470681 , 473918 , 481399 , 481401 , 481465 , 482437 , 483767 , 489301 , 489330 , 489725 , 492004 , 494600 , 499000 , 502943 , 509292 , 511453 , 514110 , 517392 , 517417 , 517599 , 518926 , 519925 , 524029 , 525141 , 528160 , 528230 , 542784 , 546914 , 547790 , 549174 , 556482 , 568592 , 581953 , 589431 , 591155 , 593689 , 595601 , 599449 , 613782 , 617346 , 618807 , 619312 , 626478 , 672887 , 697196 , 715417 , 757206 , 778490 , 786486 , 824533 , 824733 );
Copy
5
340.94 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
419628
420669
422351
422365
422426
427137
444262
446336
451521
461778
462160
464563
468965
470028
470496
470681
473918
481399
481401
481465
482437
483767
489301
489330
489725
492004
494600
499000
502943
509292
511453
514110
517392
517417
517599
518926
519925
524029
525141
528160
528230
542784
546914
547790
549174
556482
568592
581953
589431
591155
593689
595601
599449
613782
617346
618807
619312
626478
672887
697196
715417
757206
778490
786486
824533
824733
]
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 (419628 , 420669 , 422351 , 422365 , 422426 , 427137 , 444262 , 446336 , 451521 , 461778 , 462160 , 464563 , 468965 , 470028 , 470496 , 470681 , 473918 , 481399 , 481401 , 481465 , 482437 , 483767 , 489301 , 489330 , 489725 , 492004 , 494600 , 499000 , 502943 , 509292 , 511453 , 514110 , 517392 , 517417 , 517599 , 518926 , 519925 , 524029 , 525141 , 528160 , 528230 , 542784 , 546914 , 547790 , 549174 , 556482 , 568592 , 581953 , 589431 , 591155 , 593689 , 595601 , 599449 , 613782 , 617346 , 618807 , 619312 , 626478 , 672887 , 697196 , 715417 , 757206 , 778490 , 786486 , 824533 , 824733 );
Copy