3
13.31 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
447679
472569
454196
482315
478163
510710
421326
399641
427199
814921
461060
619396
424457
489108
318700
469321
494786
592377
393067
594830
446354
396722
445586
499787
419888
382637
425070
469509
565847
462606
523081
387723
426466
625342
428531
418686
131615
446872
461906
447490
444739
401334
383455
457862
407374
795538
482173
531461
642578
456931
483963
561632
467955
502645
524848
508673
451795
531581
444095
411863
485049
561814
588329
]
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 (447679 , 472569 , 454196 , 482315 , 478163 , 510710 , 421326 , 399641 , 427199 , 814921 , 461060 , 619396 , 424457 , 489108 , 318700 , 469321 , 494786 , 592377 , 393067 , 594830 , 446354 , 396722 , 445586 , 499787 , 419888 , 382637 , 425070 , 469509 , 565847 , 462606 , 523081 , 387723 , 426466 , 625342 , 428531 , 418686 , 131615 , 446872 , 461906 , 447490 , 444739 , 401334 , 383455 , 457862 , 407374 , 795538 , 482173 , 531461 , 642578 , 456931 , 483963 , 561632 , 467955 , 502645 , 524848 , 508673 , 451795 , 531581 , 444095 , 411863 , 485049 , 561814 , 588329 );
Copy
4
3.07 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
131615
318700
382637
383455
387723
393067
396722
399641
401334
407374
411863
418686
419888
421326
424457
425070
426466
427199
428531
444095
444739
445586
446354
446872
447490
447679
451795
454196
456931
457862
461060
461906
462606
467955
469321
469509
472569
478163
482173
482315
483963
485049
489108
494786
499787
502645
508673
510710
523081
524848
531461
531581
561632
561814
565847
588329
592377
594830
619396
625342
642578
795538
814921
]
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 (131615 , 318700 , 382637 , 383455 , 387723 , 393067 , 396722 , 399641 , 401334 , 407374 , 411863 , 418686 , 419888 , 421326 , 424457 , 425070 , 426466 , 427199 , 428531 , 444095 , 444739 , 445586 , 446354 , 446872 , 447490 , 447679 , 451795 , 454196 , 456931 , 457862 , 461060 , 461906 , 462606 , 467955 , 469321 , 469509 , 472569 , 478163 , 482173 , 482315 , 483963 , 485049 , 489108 , 494786 , 499787 , 502645 , 508673 , 510710 , 523081 , 524848 , 531461 , 531581 , 561632 , 561814 , 565847 , 588329 , 592377 , 594830 , 619396 , 625342 , 642578 , 795538 , 814921 );
Copy
5
107.87 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
131615
318700
382637
383455
387723
393067
396722
399641
401334
407374
411863
418686
419888
421326
424457
425070
426466
427199
428531
444095
444739
445586
446354
446872
447490
447679
451795
454196
456931
457862
461060
461906
462606
467955
469321
469509
472569
478163
482173
482315
483963
485049
489108
494786
499787
502645
508673
510710
523081
524848
531461
531581
561632
561814
565847
588329
592377
594830
619396
625342
642578
795538
814921
]
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 (131615 , 318700 , 382637 , 383455 , 387723 , 393067 , 396722 , 399641 , 401334 , 407374 , 411863 , 418686 , 419888 , 421326 , 424457 , 425070 , 426466 , 427199 , 428531 , 444095 , 444739 , 445586 , 446354 , 446872 , 447490 , 447679 , 451795 , 454196 , 456931 , 457862 , 461060 , 461906 , 462606 , 467955 , 469321 , 469509 , 472569 , 478163 , 482173 , 482315 , 483963 , 485049 , 489108 , 494786 , 499787 , 502645 , 508673 , 510710 , 523081 , 524848 , 531461 , 531581 , 561632 , 561814 , 565847 , 588329 , 592377 , 594830 , 619396 , 625342 , 642578 , 795538 , 814921 );
Copy