3
10.44 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
808976
808978
791797
808994
756105
740836
595215
812278
403215
421759
439240
580500
589150
421971
460038
454641
498319
416677
499931
782855
786662
787095
791441
740123
806444
806623
415749
796642
791020
418149
458760
567253
418138
786687
787516
793962
751337
452829
590102
420874
662438
783486
784608
785875
790481
807578
751006
772632
787507
402190
584421
569315
574657
782450
601690
437874
458368
664723
595275
782892
785864
749060
433001
466814
779840
791810
453216
434382
467923
445175
]
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 (808976 , 808978 , 791797 , 808994 , 756105 , 740836 , 595215 , 812278 , 403215 , 421759 , 439240 , 580500 , 589150 , 421971 , 460038 , 454641 , 498319 , 416677 , 499931 , 782855 , 786662 , 787095 , 791441 , 740123 , 806444 , 806623 , 415749 , 796642 , 791020 , 418149 , 458760 , 567253 , 418138 , 786687 , 787516 , 793962 , 751337 , 452829 , 590102 , 420874 , 662438 , 783486 , 784608 , 785875 , 790481 , 807578 , 751006 , 772632 , 787507 , 402190 , 584421 , 569315 , 574657 , 782450 , 601690 , 437874 , 458368 , 664723 , 595275 , 782892 , 785864 , 749060 , 433001 , 466814 , 779840 , 791810 , 453216 , 434382 , 467923 , 445175 );
Copy
4
2.91 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
402190
403215
415749
416677
418138
418149
420874
421759
421971
433001
434382
437874
439240
445175
452829
453216
454641
458368
458760
460038
466814
467923
498319
499931
567253
569315
574657
580500
584421
589150
590102
595215
595275
601690
662438
664723
740123
740836
749060
751006
751337
756105
772632
779840
782450
782855
782892
783486
784608
785864
785875
786662
786687
787095
787507
787516
790481
791020
791441
791797
791810
793962
806444
806623
807578
808976
808978
808994
812278
]
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 (402190 , 403215 , 415749 , 416677 , 418138 , 418149 , 420874 , 421759 , 421971 , 433001 , 434382 , 437874 , 439240 , 445175 , 452829 , 453216 , 454641 , 458368 , 458760 , 460038 , 466814 , 467923 , 498319 , 499931 , 567253 , 569315 , 574657 , 580500 , 584421 , 589150 , 590102 , 595215 , 595275 , 601690 , 662438 , 664723 , 740123 , 740836 , 749060 , 751006 , 751337 , 756105 , 772632 , 779840 , 782450 , 782855 , 782892 , 783486 , 784608 , 785864 , 785875 , 786662 , 786687 , 787095 , 787507 , 787516 , 790481 , 791020 , 791441 , 791797 , 791810 , 793962 , 806444 , 806623 , 807578 , 808976 , 808978 , 808994 , 812278 );
Copy
5
94.24 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
402190
403215
415749
416677
418138
418149
420874
421759
421971
433001
434382
437874
439240
445175
452829
453216
454641
458368
458760
460038
466814
467923
498319
499931
567253
569315
574657
580500
584421
589150
590102
595215
595275
601690
662438
664723
740123
740836
749060
751006
751337
756105
772632
779840
782450
782855
782892
783486
784608
785864
785875
786662
786687
787095
787507
787516
790481
791020
791441
791797
791810
793962
806444
806623
807578
808976
808978
808994
812278
]
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 (402190 , 403215 , 415749 , 416677 , 418138 , 418149 , 420874 , 421759 , 421971 , 433001 , 434382 , 437874 , 439240 , 445175 , 452829 , 453216 , 454641 , 458368 , 458760 , 460038 , 466814 , 467923 , 498319 , 499931 , 567253 , 569315 , 574657 , 580500 , 584421 , 589150 , 590102 , 595215 , 595275 , 601690 , 662438 , 664723 , 740123 , 740836 , 749060 , 751006 , 751337 , 756105 , 772632 , 779840 , 782450 , 782855 , 782892 , 783486 , 784608 , 785864 , 785875 , 786662 , 786687 , 787095 , 787507 , 787516 , 790481 , 791020 , 791441 , 791797 , 791810 , 793962 , 806444 , 806623 , 807578 , 808976 , 808978 , 808994 , 812278 );
Copy