3
11.51 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
571439
382015
309171
763852
403938
411118
552869
400537
404377
450213
509652
583765
418848
382371
400834
424744
430326
475502
390086
483242
556741
95586
413117
427515
561998
644959
448708
447883
475227
523989
484124
487377
500644
574823
464703
443839
460958
405891
437151
515633
442883
401500
477483
424060
531654
514644
521074
453813
461576
536648
443425
548257
593989
622255
608926
624846
589642
615631
593372
522878
568045
649185
541866
]
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 (571439 , 382015 , 309171 , 763852 , 403938 , 411118 , 552869 , 400537 , 404377 , 450213 , 509652 , 583765 , 418848 , 382371 , 400834 , 424744 , 430326 , 475502 , 390086 , 483242 , 556741 , 95586 , 413117 , 427515 , 561998 , 644959 , 448708 , 447883 , 475227 , 523989 , 484124 , 487377 , 500644 , 574823 , 464703 , 443839 , 460958 , 405891 , 437151 , 515633 , 442883 , 401500 , 477483 , 424060 , 531654 , 514644 , 521074 , 453813 , 461576 , 536648 , 443425 , 548257 , 593989 , 622255 , 608926 , 624846 , 589642 , 615631 , 593372 , 522878 , 568045 , 649185 , 541866 );
Copy
4
2.72 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
95586
309171
382015
382371
390086
400537
400834
401500
403938
404377
405891
411118
413117
418848
424060
424744
427515
430326
437151
442883
443425
443839
447883
448708
450213
453813
460958
461576
464703
475227
475502
477483
483242
484124
487377
500644
509652
514644
515633
521074
522878
523989
531654
536648
541866
548257
552869
556741
561998
568045
571439
574823
583765
589642
593372
593989
608926
615631
622255
624846
644959
649185
763852
]
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 (95586 , 309171 , 382015 , 382371 , 390086 , 400537 , 400834 , 401500 , 403938 , 404377 , 405891 , 411118 , 413117 , 418848 , 424060 , 424744 , 427515 , 430326 , 437151 , 442883 , 443425 , 443839 , 447883 , 448708 , 450213 , 453813 , 460958 , 461576 , 464703 , 475227 , 475502 , 477483 , 483242 , 484124 , 487377 , 500644 , 509652 , 514644 , 515633 , 521074 , 522878 , 523989 , 531654 , 536648 , 541866 , 548257 , 552869 , 556741 , 561998 , 568045 , 571439 , 574823 , 583765 , 589642 , 593372 , 593989 , 608926 , 615631 , 622255 , 624846 , 644959 , 649185 , 763852 );
Copy
5
114.31 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
95586
309171
382015
382371
390086
400537
400834
401500
403938
404377
405891
411118
413117
418848
424060
424744
427515
430326
437151
442883
443425
443839
447883
448708
450213
453813
460958
461576
464703
475227
475502
477483
483242
484124
487377
500644
509652
514644
515633
521074
522878
523989
531654
536648
541866
548257
552869
556741
561998
568045
571439
574823
583765
589642
593372
593989
608926
615631
622255
624846
644959
649185
763852
]
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 (95586 , 309171 , 382015 , 382371 , 390086 , 400537 , 400834 , 401500 , 403938 , 404377 , 405891 , 411118 , 413117 , 418848 , 424060 , 424744 , 427515 , 430326 , 437151 , 442883 , 443425 , 443839 , 447883 , 448708 , 450213 , 453813 , 460958 , 461576 , 464703 , 475227 , 475502 , 477483 , 483242 , 484124 , 487377 , 500644 , 509652 , 514644 , 515633 , 521074 , 522878 , 523989 , 531654 , 536648 , 541866 , 548257 , 552869 , 556741 , 561998 , 568045 , 571439 , 574823 , 583765 , 589642 , 593372 , 593989 , 608926 , 615631 , 622255 , 624846 , 644959 , 649185 , 763852 );
Copy