3
11.96 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
531204
501488
605461
605398
605532
807847
655698
598622
607018
534827
656768
460501
472614
719862
405176
405907
530763
505092
753106
453590
650236
605670
467973
732748
328446
554392
651276
634474
467562
575338
691713
605007
650882
585752
644059
460494
606868
459389
418399
420760
661970
605521
597152
540141
558442
636593
632924
587631
420307
417899
535087
525547
516590
405061
407136
661303
605595
475630
474621
585960
605612
501487
593860
425655
614720
621348
550667
583723
]
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 (531204 , 501488 , 605461 , 605398 , 605532 , 807847 , 655698 , 598622 , 607018 , 534827 , 656768 , 460501 , 472614 , 719862 , 405176 , 405907 , 530763 , 505092 , 753106 , 453590 , 650236 , 605670 , 467973 , 732748 , 328446 , 554392 , 651276 , 634474 , 467562 , 575338 , 691713 , 605007 , 650882 , 585752 , 644059 , 460494 , 606868 , 459389 , 418399 , 420760 , 661970 , 605521 , 597152 , 540141 , 558442 , 636593 , 632924 , 587631 , 420307 , 417899 , 535087 , 525547 , 516590 , 405061 , 407136 , 661303 , 605595 , 475630 , 474621 , 585960 , 605612 , 501487 , 593860 , 425655 , 614720 , 621348 , 550667 , 583723 );
Copy
4
3.13 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
328446
405061
405176
405907
407136
417899
418399
420307
420760
425655
453590
459389
460494
460501
467562
467973
472614
474621
475630
501487
501488
505092
516590
525547
530763
531204
534827
535087
540141
550667
554392
558442
575338
583723
585752
585960
587631
593860
597152
598622
605007
605398
605461
605521
605532
605595
605612
605670
606868
607018
614720
621348
632924
634474
636593
644059
650236
650882
651276
655698
656768
661303
661970
691713
719862
732748
753106
807847
]
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 (328446 , 405061 , 405176 , 405907 , 407136 , 417899 , 418399 , 420307 , 420760 , 425655 , 453590 , 459389 , 460494 , 460501 , 467562 , 467973 , 472614 , 474621 , 475630 , 501487 , 501488 , 505092 , 516590 , 525547 , 530763 , 531204 , 534827 , 535087 , 540141 , 550667 , 554392 , 558442 , 575338 , 583723 , 585752 , 585960 , 587631 , 593860 , 597152 , 598622 , 605007 , 605398 , 605461 , 605521 , 605532 , 605595 , 605612 , 605670 , 606868 , 607018 , 614720 , 621348 , 632924 , 634474 , 636593 , 644059 , 650236 , 650882 , 651276 , 655698 , 656768 , 661303 , 661970 , 691713 , 719862 , 732748 , 753106 , 807847 );
Copy
5
99.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
328446
405061
405176
405907
407136
417899
418399
420307
420760
425655
453590
459389
460494
460501
467562
467973
472614
474621
475630
501487
501488
505092
516590
525547
530763
531204
534827
535087
540141
550667
554392
558442
575338
583723
585752
585960
587631
593860
597152
598622
605007
605398
605461
605521
605532
605595
605612
605670
606868
607018
614720
621348
632924
634474
636593
644059
650236
650882
651276
655698
656768
661303
661970
691713
719862
732748
753106
807847
]
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 (328446 , 405061 , 405176 , 405907 , 407136 , 417899 , 418399 , 420307 , 420760 , 425655 , 453590 , 459389 , 460494 , 460501 , 467562 , 467973 , 472614 , 474621 , 475630 , 501487 , 501488 , 505092 , 516590 , 525547 , 530763 , 531204 , 534827 , 535087 , 540141 , 550667 , 554392 , 558442 , 575338 , 583723 , 585752 , 585960 , 587631 , 593860 , 597152 , 598622 , 605007 , 605398 , 605461 , 605521 , 605532 , 605595 , 605612 , 605670 , 606868 , 607018 , 614720 , 621348 , 632924 , 634474 , 636593 , 644059 , 650236 , 650882 , 651276 , 655698 , 656768 , 661303 , 661970 , 691713 , 719862 , 732748 , 753106 , 807847 );
Copy