3
10.30 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
704231
389587
671529
483349
540516
692001
443889
397015
579253
698711
403355
683303
597085
601153
806687
768398
418718
701439
669542
777562
456247
456245
626354
428932
412180
536641
538348
794134
729565
758648
784824
462124
466214
490111
452923
426346
443245
439868
645237
596670
452910
504735
416653
418719
511893
543435
556935
648880
662143
641436
416511
452496
386684
416596
416626
452843
457147
728336
416614
505376
644915
420918
418144
483352
429369
495220
584887
]
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 (704231 , 389587 , 671529 , 483349 , 540516 , 692001 , 443889 , 397015 , 579253 , 698711 , 403355 , 683303 , 597085 , 601153 , 806687 , 768398 , 418718 , 701439 , 669542 , 777562 , 456247 , 456245 , 626354 , 428932 , 412180 , 536641 , 538348 , 794134 , 729565 , 758648 , 784824 , 462124 , 466214 , 490111 , 452923 , 426346 , 443245 , 439868 , 645237 , 596670 , 452910 , 504735 , 416653 , 418719 , 511893 , 543435 , 556935 , 648880 , 662143 , 641436 , 416511 , 452496 , 386684 , 416596 , 416626 , 452843 , 457147 , 728336 , 416614 , 505376 , 644915 , 420918 , 418144 , 483352 , 429369 , 495220 , 584887 );
Copy
4
2.39 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
386684
389587
397015
403355
412180
416511
416596
416614
416626
416653
418144
418718
418719
420918
426346
428932
429369
439868
443245
443889
452496
452843
452910
452923
456245
456247
457147
462124
466214
483349
483352
490111
495220
504735
505376
511893
536641
538348
540516
543435
556935
579253
584887
596670
597085
601153
626354
641436
644915
645237
648880
662143
669542
671529
683303
692001
698711
701439
704231
728336
729565
758648
768398
777562
784824
794134
806687
]
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 (386684 , 389587 , 397015 , 403355 , 412180 , 416511 , 416596 , 416614 , 416626 , 416653 , 418144 , 418718 , 418719 , 420918 , 426346 , 428932 , 429369 , 439868 , 443245 , 443889 , 452496 , 452843 , 452910 , 452923 , 456245 , 456247 , 457147 , 462124 , 466214 , 483349 , 483352 , 490111 , 495220 , 504735 , 505376 , 511893 , 536641 , 538348 , 540516 , 543435 , 556935 , 579253 , 584887 , 596670 , 597085 , 601153 , 626354 , 641436 , 644915 , 645237 , 648880 , 662143 , 669542 , 671529 , 683303 , 692001 , 698711 , 701439 , 704231 , 728336 , 729565 , 758648 , 768398 , 777562 , 784824 , 794134 , 806687 );
Copy
5
96.79 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
386684
389587
397015
403355
412180
416511
416596
416614
416626
416653
418144
418718
418719
420918
426346
428932
429369
439868
443245
443889
452496
452843
452910
452923
456245
456247
457147
462124
466214
483349
483352
490111
495220
504735
505376
511893
536641
538348
540516
543435
556935
579253
584887
596670
597085
601153
626354
641436
644915
645237
648880
662143
669542
671529
683303
692001
698711
701439
704231
728336
729565
758648
768398
777562
784824
794134
806687
]
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 (386684 , 389587 , 397015 , 403355 , 412180 , 416511 , 416596 , 416614 , 416626 , 416653 , 418144 , 418718 , 418719 , 420918 , 426346 , 428932 , 429369 , 439868 , 443245 , 443889 , 452496 , 452843 , 452910 , 452923 , 456245 , 456247 , 457147 , 462124 , 466214 , 483349 , 483352 , 490111 , 495220 , 504735 , 505376 , 511893 , 536641 , 538348 , 540516 , 543435 , 556935 , 579253 , 584887 , 596670 , 597085 , 601153 , 626354 , 641436 , 644915 , 645237 , 648880 , 662143 , 669542 , 671529 , 683303 , 692001 , 698711 , 701439 , 704231 , 728336 , 729565 , 758648 , 768398 , 777562 , 784824 , 794134 , 806687 );
Copy