4
13.32 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
512883
482906
525327
190958
391253
442288
434045
469351
464854
552009
564473
544508
558214
543191
547874
550702
720047
568505
605980
602743
595900
755030
480638
436829
386767
465161
469028
449566
506887
509605
483263
493547
528140
406282
438814
452132
518027
508209
540238
563447
561601
569009
669079
619409
792624
405050
453347
481154
504250
820871
560877
598849
607637
621657
629985
436053
522280
497537
453069
557042
666904
433238
486706
518985
450822
531074
523537
666902
563865
505814
519347
666880
636248
520346
]
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 (512883 , 482906 , 525327 , 190958 , 391253 , 442288 , 434045 , 469351 , 464854 , 552009 , 564473 , 544508 , 558214 , 543191 , 547874 , 550702 , 720047 , 568505 , 605980 , 602743 , 595900 , 755030 , 480638 , 436829 , 386767 , 465161 , 469028 , 449566 , 506887 , 509605 , 483263 , 493547 , 528140 , 406282 , 438814 , 452132 , 518027 , 508209 , 540238 , 563447 , 561601 , 569009 , 669079 , 619409 , 792624 , 405050 , 453347 , 481154 , 504250 , 820871 , 560877 , 598849 , 607637 , 621657 , 629985 , 436053 , 522280 , 497537 , 453069 , 557042 , 666904 , 433238 , 486706 , 518985 , 450822 , 531074 , 523537 , 666902 , 563865 , 505814 , 519347 , 666880 , 636248 , 520346 );
Copy
5
2.27 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
190958
386767
391253
405050
406282
433238
434045
436053
436829
438814
442288
449566
450822
452132
453069
453347
464854
465161
469028
469351
480638
481154
482906
483263
486706
493547
497537
504250
505814
506887
508209
509605
512883
518027
518985
519347
520346
522280
523537
525327
528140
531074
540238
543191
544508
547874
550702
552009
557042
558214
560877
561601
563447
563865
564473
568505
569009
595900
598849
602743
605980
607637
619409
621657
629985
636248
666880
666902
666904
669079
720047
755030
792624
820871
]
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 (190958 , 386767 , 391253 , 405050 , 406282 , 433238 , 434045 , 436053 , 436829 , 438814 , 442288 , 449566 , 450822 , 452132 , 453069 , 453347 , 464854 , 465161 , 469028 , 469351 , 480638 , 481154 , 482906 , 483263 , 486706 , 493547 , 497537 , 504250 , 505814 , 506887 , 508209 , 509605 , 512883 , 518027 , 518985 , 519347 , 520346 , 522280 , 523537 , 525327 , 528140 , 531074 , 540238 , 543191 , 544508 , 547874 , 550702 , 552009 , 557042 , 558214 , 560877 , 561601 , 563447 , 563865 , 564473 , 568505 , 569009 , 595900 , 598849 , 602743 , 605980 , 607637 , 619409 , 621657 , 629985 , 636248 , 666880 , 666902 , 666904 , 669079 , 720047 , 755030 , 792624 , 820871 );
Copy
6
78.85 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
190958
386767
391253
405050
406282
433238
434045
436053
436829
438814
442288
449566
450822
452132
453069
453347
464854
465161
469028
469351
480638
481154
482906
483263
486706
493547
497537
504250
505814
506887
508209
509605
512883
518027
518985
519347
520346
522280
523537
525327
528140
531074
540238
543191
544508
547874
550702
552009
557042
558214
560877
561601
563447
563865
564473
568505
569009
595900
598849
602743
605980
607637
619409
621657
629985
636248
666880
666902
666904
669079
720047
755030
792624
820871
]
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 (190958 , 386767 , 391253 , 405050 , 406282 , 433238 , 434045 , 436053 , 436829 , 438814 , 442288 , 449566 , 450822 , 452132 , 453069 , 453347 , 464854 , 465161 , 469028 , 469351 , 480638 , 481154 , 482906 , 483263 , 486706 , 493547 , 497537 , 504250 , 505814 , 506887 , 508209 , 509605 , 512883 , 518027 , 518985 , 519347 , 520346 , 522280 , 523537 , 525327 , 528140 , 531074 , 540238 , 543191 , 544508 , 547874 , 550702 , 552009 , 557042 , 558214 , 560877 , 561601 , 563447 , 563865 , 564473 , 568505 , 569009 , 595900 , 598849 , 602743 , 605980 , 607637 , 619409 , 621657 , 629985 , 636248 , 666880 , 666902 , 666904 , 669079 , 720047 , 755030 , 792624 , 820871 );
Copy