3
16.25 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
485657
393145
424186
420360
570609
387000
468360
482616
103758
391767
386797
506477
210576
479443
599714
502447
499539
485839
473277
455972
390914
455409
489180
579384
472807
512412
413938
504716
464636
466614
446508
428296
417748
461244
480927
473919
507004
482730
461322
571351
455425
529381
450883
472159
420696
486505
494097
461886
480852
487845
428765
459377
495264
390582
526580
411804
423709
503750
476687
527249
444165
509668
598564
516352
617117
619725
580766
598164
517652
]
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 (485657 , 393145 , 424186 , 420360 , 570609 , 387000 , 468360 , 482616 , 103758 , 391767 , 386797 , 506477 , 210576 , 479443 , 599714 , 502447 , 499539 , 485839 , 473277 , 455972 , 390914 , 455409 , 489180 , 579384 , 472807 , 512412 , 413938 , 504716 , 464636 , 466614 , 446508 , 428296 , 417748 , 461244 , 480927 , 473919 , 507004 , 482730 , 461322 , 571351 , 455425 , 529381 , 450883 , 472159 , 420696 , 486505 , 494097 , 461886 , 480852 , 487845 , 428765 , 459377 , 495264 , 390582 , 526580 , 411804 , 423709 , 503750 , 476687 , 527249 , 444165 , 509668 , 598564 , 516352 , 617117 , 619725 , 580766 , 598164 , 517652 );
Copy
4
3.01 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
103758
210576
386797
387000
390582
390914
391767
393145
411804
413938
417748
420360
420696
423709
424186
428296
428765
444165
446508
450883
455409
455425
455972
459377
461244
461322
461886
464636
466614
468360
472159
472807
473277
473919
476687
479443
480852
480927
482616
482730
485657
485839
486505
487845
489180
494097
495264
499539
502447
503750
504716
506477
507004
509668
512412
516352
517652
526580
527249
529381
570609
571351
579384
580766
598164
598564
599714
617117
619725
]
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 (103758 , 210576 , 386797 , 387000 , 390582 , 390914 , 391767 , 393145 , 411804 , 413938 , 417748 , 420360 , 420696 , 423709 , 424186 , 428296 , 428765 , 444165 , 446508 , 450883 , 455409 , 455425 , 455972 , 459377 , 461244 , 461322 , 461886 , 464636 , 466614 , 468360 , 472159 , 472807 , 473277 , 473919 , 476687 , 479443 , 480852 , 480927 , 482616 , 482730 , 485657 , 485839 , 486505 , 487845 , 489180 , 494097 , 495264 , 499539 , 502447 , 503750 , 504716 , 506477 , 507004 , 509668 , 512412 , 516352 , 517652 , 526580 , 527249 , 529381 , 570609 , 571351 , 579384 , 580766 , 598164 , 598564 , 599714 , 617117 , 619725 );
Copy
5
130.09 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
103758
210576
386797
387000
390582
390914
391767
393145
411804
413938
417748
420360
420696
423709
424186
428296
428765
444165
446508
450883
455409
455425
455972
459377
461244
461322
461886
464636
466614
468360
472159
472807
473277
473919
476687
479443
480852
480927
482616
482730
485657
485839
486505
487845
489180
494097
495264
499539
502447
503750
504716
506477
507004
509668
512412
516352
517652
526580
527249
529381
570609
571351
579384
580766
598164
598564
599714
617117
619725
]
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 (103758 , 210576 , 386797 , 387000 , 390582 , 390914 , 391767 , 393145 , 411804 , 413938 , 417748 , 420360 , 420696 , 423709 , 424186 , 428296 , 428765 , 444165 , 446508 , 450883 , 455409 , 455425 , 455972 , 459377 , 461244 , 461322 , 461886 , 464636 , 466614 , 468360 , 472159 , 472807 , 473277 , 473919 , 476687 , 479443 , 480852 , 480927 , 482616 , 482730 , 485657 , 485839 , 486505 , 487845 , 489180 , 494097 , 495264 , 499539 , 502447 , 503750 , 504716 , 506477 , 507004 , 509668 , 512412 , 516352 , 517652 , 526580 , 527249 , 529381 , 570609 , 571351 , 579384 , 580766 , 598164 , 598564 , 599714 , 617117 , 619725 );
Copy