3
12.86 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
716450
723377
725403
562450
397224
483136
411614
409050
488024
474497
411165
825142
712806
663375
665254
725345
428500
475220
462084
794629
663391
446622
578158
537148
514335
663965
663902
665440
667273
589577
446249
469317
665867
414019
591145
414940
463698
496341
550437
420152
491281
446628
483090
534581
526507
667290
712822
548068
446632
461019
459643
537834
544464
567421
559332
794656
414038
617722
446624
515724
481295
491022
517073
429143
461018
598653
476856
525116
550434
]
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 (716450 , 723377 , 725403 , 562450 , 397224 , 483136 , 411614 , 409050 , 488024 , 474497 , 411165 , 825142 , 712806 , 663375 , 665254 , 725345 , 428500 , 475220 , 462084 , 794629 , 663391 , 446622 , 578158 , 537148 , 514335 , 663965 , 663902 , 665440 , 667273 , 589577 , 446249 , 469317 , 665867 , 414019 , 591145 , 414940 , 463698 , 496341 , 550437 , 420152 , 491281 , 446628 , 483090 , 534581 , 526507 , 667290 , 712822 , 548068 , 446632 , 461019 , 459643 , 537834 , 544464 , 567421 , 559332 , 794656 , 414038 , 617722 , 446624 , 515724 , 481295 , 491022 , 517073 , 429143 , 461018 , 598653 , 476856 , 525116 , 550434 );
Copy
4
3.10 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
397224
409050
411165
411614
414019
414038
414940
420152
428500
429143
446249
446622
446624
446628
446632
459643
461018
461019
462084
463698
469317
474497
475220
476856
481295
483090
483136
488024
491022
491281
496341
514335
515724
517073
525116
526507
534581
537148
537834
544464
548068
550434
550437
559332
562450
567421
578158
589577
591145
598653
617722
663375
663391
663902
663965
665254
665440
665867
667273
667290
712806
712822
716450
723377
725345
725403
794629
794656
825142
]
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 (397224 , 409050 , 411165 , 411614 , 414019 , 414038 , 414940 , 420152 , 428500 , 429143 , 446249 , 446622 , 446624 , 446628 , 446632 , 459643 , 461018 , 461019 , 462084 , 463698 , 469317 , 474497 , 475220 , 476856 , 481295 , 483090 , 483136 , 488024 , 491022 , 491281 , 496341 , 514335 , 515724 , 517073 , 525116 , 526507 , 534581 , 537148 , 537834 , 544464 , 548068 , 550434 , 550437 , 559332 , 562450 , 567421 , 578158 , 589577 , 591145 , 598653 , 617722 , 663375 , 663391 , 663902 , 663965 , 665254 , 665440 , 665867 , 667273 , 667290 , 712806 , 712822 , 716450 , 723377 , 725345 , 725403 , 794629 , 794656 , 825142 );
Copy
5
137.98 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
397224
409050
411165
411614
414019
414038
414940
420152
428500
429143
446249
446622
446624
446628
446632
459643
461018
461019
462084
463698
469317
474497
475220
476856
481295
483090
483136
488024
491022
491281
496341
514335
515724
517073
525116
526507
534581
537148
537834
544464
548068
550434
550437
559332
562450
567421
578158
589577
591145
598653
617722
663375
663391
663902
663965
665254
665440
665867
667273
667290
712806
712822
716450
723377
725345
725403
794629
794656
825142
]
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 (397224 , 409050 , 411165 , 411614 , 414019 , 414038 , 414940 , 420152 , 428500 , 429143 , 446249 , 446622 , 446624 , 446628 , 446632 , 459643 , 461018 , 461019 , 462084 , 463698 , 469317 , 474497 , 475220 , 476856 , 481295 , 483090 , 483136 , 488024 , 491022 , 491281 , 496341 , 514335 , 515724 , 517073 , 525116 , 526507 , 534581 , 537148 , 537834 , 544464 , 548068 , 550434 , 550437 , 559332 , 562450 , 567421 , 578158 , 589577 , 591145 , 598653 , 617722 , 663375 , 663391 , 663902 , 663965 , 665254 , 665440 , 665867 , 667273 , 667290 , 712806 , 712822 , 716450 , 723377 , 725345 , 725403 , 794629 , 794656 , 825142 );
Copy