3
11.20 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
746460
718550
781731
823693
229834
696316
457996
828485
714818
381846
191343
187903
536306
725569
731818
407761
629847
788773
542785
774172
726625
395146
423632
801331
758831
782001
485357
390644
537587
549740
496524
518872
802657
514757
818488
747094
409324
554461
145502
514746
740164
411926
521206
445943
404030
419043
818229
407627
524881
490409
413461
405261
503842
562599
712010
704928
405543
463840
459856
556655
430833
428878
457985
489108
486594
516904
424351
512355
]
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 (746460 , 718550 , 781731 , 823693 , 229834 , 696316 , 457996 , 828485 , 714818 , 381846 , 191343 , 187903 , 536306 , 725569 , 731818 , 407761 , 629847 , 788773 , 542785 , 774172 , 726625 , 395146 , 423632 , 801331 , 758831 , 782001 , 485357 , 390644 , 537587 , 549740 , 496524 , 518872 , 802657 , 514757 , 818488 , 747094 , 409324 , 554461 , 145502 , 514746 , 740164 , 411926 , 521206 , 445943 , 404030 , 419043 , 818229 , 407627 , 524881 , 490409 , 413461 , 405261 , 503842 , 562599 , 712010 , 704928 , 405543 , 463840 , 459856 , 556655 , 430833 , 428878 , 457985 , 489108 , 486594 , 516904 , 424351 , 512355 );
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
145502
187903
191343
229834
381846
390644
395146
404030
405261
405543
407627
407761
409324
411926
413461
419043
423632
424351
428878
430833
445943
457985
457996
459856
463840
485357
486594
489108
490409
496524
503842
512355
514746
514757
516904
518872
521206
524881
536306
537587
542785
549740
554461
556655
562599
629847
696316
704928
712010
714818
718550
725569
726625
731818
740164
746460
747094
758831
774172
781731
782001
788773
801331
802657
818229
818488
823693
828485
]
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 (145502 , 187903 , 191343 , 229834 , 381846 , 390644 , 395146 , 404030 , 405261 , 405543 , 407627 , 407761 , 409324 , 411926 , 413461 , 419043 , 423632 , 424351 , 428878 , 430833 , 445943 , 457985 , 457996 , 459856 , 463840 , 485357 , 486594 , 489108 , 490409 , 496524 , 503842 , 512355 , 514746 , 514757 , 516904 , 518872 , 521206 , 524881 , 536306 , 537587 , 542785 , 549740 , 554461 , 556655 , 562599 , 629847 , 696316 , 704928 , 712010 , 714818 , 718550 , 725569 , 726625 , 731818 , 740164 , 746460 , 747094 , 758831 , 774172 , 781731 , 782001 , 788773 , 801331 , 802657 , 818229 , 818488 , 823693 , 828485 );
Copy
5
71.65 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
145502
187903
191343
229834
381846
390644
395146
404030
405261
405543
407627
407761
409324
411926
413461
419043
423632
424351
428878
430833
445943
457985
457996
459856
463840
485357
486594
489108
490409
496524
503842
512355
514746
514757
516904
518872
521206
524881
536306
537587
542785
549740
554461
556655
562599
629847
696316
704928
712010
714818
718550
725569
726625
731818
740164
746460
747094
758831
774172
781731
782001
788773
801331
802657
818229
818488
823693
828485
]
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 (145502 , 187903 , 191343 , 229834 , 381846 , 390644 , 395146 , 404030 , 405261 , 405543 , 407627 , 407761 , 409324 , 411926 , 413461 , 419043 , 423632 , 424351 , 428878 , 430833 , 445943 , 457985 , 457996 , 459856 , 463840 , 485357 , 486594 , 489108 , 490409 , 496524 , 503842 , 512355 , 514746 , 514757 , 516904 , 518872 , 521206 , 524881 , 536306 , 537587 , 542785 , 549740 , 554461 , 556655 , 562599 , 629847 , 696316 , 704928 , 712010 , 714818 , 718550 , 725569 , 726625 , 731818 , 740164 , 746460 , 747094 , 758831 , 774172 , 781731 , 782001 , 788773 , 801331 , 802657 , 818229 , 818488 , 823693 , 828485 );
Copy