7
12.03 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
525159
523757
522573
521200
518719
516666
513202
509288
509018
504389
498198
495749
492054
482504
482496
480318
479007
472833
472579
470925
470816
457998
457141
455546
451758
450530
449432
449200
448504
447180
447162
444500
441806
440951
439552
438314
435567
433435
433366
432572
432559
432427
432404
432399
432395
427172
426912
426909
426836
426816
426737
426736
426734
426731
426730
426631
426628
424950
422035
420516
418661
418522
417949
414871
410695
407466
406918
406217
396006
390832
384215
203480
191281
]
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 (525159 , 523757 , 522573 , 521200 , 518719 , 516666 , 513202 , 509288 , 509018 , 504389 , 498198 , 495749 , 492054 , 482504 , 482496 , 480318 , 479007 , 472833 , 472579 , 470925 , 470816 , 457998 , 457141 , 455546 , 451758 , 450530 , 449432 , 449200 , 448504 , 447180 , 447162 , 444500 , 441806 , 440951 , 439552 , 438314 , 435567 , 433435 , 433366 , 432572 , 432559 , 432427 , 432404 , 432399 , 432395 , 427172 , 426912 , 426909 , 426836 , 426816 , 426737 , 426736 , 426734 , 426731 , 426730 , 426631 , 426628 , 424950 , 422035 , 420516 , 418661 , 418522 , 417949 , 414871 , 410695 , 407466 , 406918 , 406217 , 396006 , 390832 , 384215 , 203480 , 191281 );
Copy
8
2.76 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
191281
203480
384215
390832
396006
406217
406918
407466
410695
414871
417949
418522
418661
420516
422035
424950
426628
426631
426730
426731
426734
426736
426737
426816
426836
426909
426912
427172
432395
432399
432404
432427
432559
432572
433366
433435
435567
438314
439552
440951
441806
444500
447162
447180
448504
449200
449432
450530
451758
455546
457141
457998
470816
470925
472579
472833
479007
480318
482496
482504
492054
495749
498198
504389
509018
509288
513202
516666
518719
521200
522573
523757
525159
]
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 (191281 , 203480 , 384215 , 390832 , 396006 , 406217 , 406918 , 407466 , 410695 , 414871 , 417949 , 418522 , 418661 , 420516 , 422035 , 424950 , 426628 , 426631 , 426730 , 426731 , 426734 , 426736 , 426737 , 426816 , 426836 , 426909 , 426912 , 427172 , 432395 , 432399 , 432404 , 432427 , 432559 , 432572 , 433366 , 433435 , 435567 , 438314 , 439552 , 440951 , 441806 , 444500 , 447162 , 447180 , 448504 , 449200 , 449432 , 450530 , 451758 , 455546 , 457141 , 457998 , 470816 , 470925 , 472579 , 472833 , 479007 , 480318 , 482496 , 482504 , 492054 , 495749 , 498198 , 504389 , 509018 , 509288 , 513202 , 516666 , 518719 , 521200 , 522573 , 523757 , 525159 );
Copy
9
111.90 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
191281
203480
384215
390832
396006
406217
406918
407466
410695
414871
417949
418522
418661
420516
422035
424950
426628
426631
426730
426731
426734
426736
426737
426816
426836
426909
426912
427172
432395
432399
432404
432427
432559
432572
433366
433435
435567
438314
439552
440951
441806
444500
447162
447180
448504
449200
449432
450530
451758
455546
457141
457998
470816
470925
472579
472833
479007
480318
482496
482504
492054
495749
498198
504389
509018
509288
513202
516666
518719
521200
522573
523757
525159
]
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 (191281 , 203480 , 384215 , 390832 , 396006 , 406217 , 406918 , 407466 , 410695 , 414871 , 417949 , 418522 , 418661 , 420516 , 422035 , 424950 , 426628 , 426631 , 426730 , 426731 , 426734 , 426736 , 426737 , 426816 , 426836 , 426909 , 426912 , 427172 , 432395 , 432399 , 432404 , 432427 , 432559 , 432572 , 433366 , 433435 , 435567 , 438314 , 439552 , 440951 , 441806 , 444500 , 447162 , 447180 , 448504 , 449200 , 449432 , 450530 , 451758 , 455546 , 457141 , 457998 , 470816 , 470925 , 472579 , 472833 , 479007 , 480318 , 482496 , 482504 , 492054 , 495749 , 498198 , 504389 , 509018 , 509288 , 513202 , 516666 , 518719 , 521200 , 522573 , 523757 , 525159 );
Copy