3
13.52 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
459235
560183
552346
693024
732236
619520
464874
525159
814431
518719
426816
451758
528413
432572
422035
679785
567689
625752
448504
516666
751577
761463
446348
439552
439428
510674
715282
509288
578356
689358
450530
432404
432559
814376
637007
560852
679717
420516
525348
541440
457998
418661
624166
460969
644973
406371
628409
814429
472833
545601
643112
418522
598937
441099
523757
628399
469738
531106
536689
646007
600026
439815
591079
525727
648837
482496
636284
428711
600297
532645
647975
540326
]
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 (459235 , 560183 , 552346 , 693024 , 732236 , 619520 , 464874 , 525159 , 814431 , 518719 , 426816 , 451758 , 528413 , 432572 , 422035 , 679785 , 567689 , 625752 , 448504 , 516666 , 751577 , 761463 , 446348 , 439552 , 439428 , 510674 , 715282 , 509288 , 578356 , 689358 , 450530 , 432404 , 432559 , 814376 , 637007 , 560852 , 679717 , 420516 , 525348 , 541440 , 457998 , 418661 , 624166 , 460969 , 644973 , 406371 , 628409 , 814429 , 472833 , 545601 , 643112 , 418522 , 598937 , 441099 , 523757 , 628399 , 469738 , 531106 , 536689 , 646007 , 600026 , 439815 , 591079 , 525727 , 648837 , 482496 , 636284 , 428711 , 600297 , 532645 , 647975 , 540326 );
Copy
4
2.85 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
406371
418522
418661
420516
422035
426816
428711
432404
432559
432572
439428
439552
439815
441099
446348
448504
450530
451758
457998
459235
460969
464874
469738
472833
482496
509288
510674
516666
518719
523757
525159
525348
525727
528413
531106
532645
536689
540326
541440
545601
552346
560183
560852
567689
578356
591079
598937
600026
600297
619520
624166
625752
628399
628409
636284
637007
643112
644973
646007
647975
648837
679717
679785
689358
693024
715282
732236
751577
761463
814376
814429
814431
]
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 (406371 , 418522 , 418661 , 420516 , 422035 , 426816 , 428711 , 432404 , 432559 , 432572 , 439428 , 439552 , 439815 , 441099 , 446348 , 448504 , 450530 , 451758 , 457998 , 459235 , 460969 , 464874 , 469738 , 472833 , 482496 , 509288 , 510674 , 516666 , 518719 , 523757 , 525159 , 525348 , 525727 , 528413 , 531106 , 532645 , 536689 , 540326 , 541440 , 545601 , 552346 , 560183 , 560852 , 567689 , 578356 , 591079 , 598937 , 600026 , 600297 , 619520 , 624166 , 625752 , 628399 , 628409 , 636284 , 637007 , 643112 , 644973 , 646007 , 647975 , 648837 , 679717 , 679785 , 689358 , 693024 , 715282 , 732236 , 751577 , 761463 , 814376 , 814429 , 814431 );
Copy
5
95.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
406371
418522
418661
420516
422035
426816
428711
432404
432559
432572
439428
439552
439815
441099
446348
448504
450530
451758
457998
459235
460969
464874
469738
472833
482496
509288
510674
516666
518719
523757
525159
525348
525727
528413
531106
532645
536689
540326
541440
545601
552346
560183
560852
567689
578356
591079
598937
600026
600297
619520
624166
625752
628399
628409
636284
637007
643112
644973
646007
647975
648837
679717
679785
689358
693024
715282
732236
751577
761463
814376
814429
814431
]
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 (406371 , 418522 , 418661 , 420516 , 422035 , 426816 , 428711 , 432404 , 432559 , 432572 , 439428 , 439552 , 439815 , 441099 , 446348 , 448504 , 450530 , 451758 , 457998 , 459235 , 460969 , 464874 , 469738 , 472833 , 482496 , 509288 , 510674 , 516666 , 518719 , 523757 , 525159 , 525348 , 525727 , 528413 , 531106 , 532645 , 536689 , 540326 , 541440 , 545601 , 552346 , 560183 , 560852 , 567689 , 578356 , 591079 , 598937 , 600026 , 600297 , 619520 , 624166 , 625752 , 628399 , 628409 , 636284 , 637007 , 643112 , 644973 , 646007 , 647975 , 648837 , 679717 , 679785 , 689358 , 693024 , 715282 , 732236 , 751577 , 761463 , 814376 , 814429 , 814431 );
Copy