3
12.91 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
595465
456174
707701
520134
519503
609774
475367
576739
595630
473575
741919
726701
505736
520789
438333
529376
500749
502579
514407
529776
475379
662782
567509
551872
502216
520203
525428
567883
439445
583990
661365
626329
469569
470207
452300
464528
476492
545680
543340
605589
609982
555057
659981
674474
748046
745397
726549
520201
522314
421579
508510
455719
543364
577582
420654
681539
560287
717236
486888
536903
517088
521504
515107
593129
516078
417427
557226
516741
572029
]
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 (595465 , 456174 , 707701 , 520134 , 519503 , 609774 , 475367 , 576739 , 595630 , 473575 , 741919 , 726701 , 505736 , 520789 , 438333 , 529376 , 500749 , 502579 , 514407 , 529776 , 475379 , 662782 , 567509 , 551872 , 502216 , 520203 , 525428 , 567883 , 439445 , 583990 , 661365 , 626329 , 469569 , 470207 , 452300 , 464528 , 476492 , 545680 , 543340 , 605589 , 609982 , 555057 , 659981 , 674474 , 748046 , 745397 , 726549 , 520201 , 522314 , 421579 , 508510 , 455719 , 543364 , 577582 , 420654 , 681539 , 560287 , 717236 , 486888 , 536903 , 517088 , 521504 , 515107 , 593129 , 516078 , 417427 , 557226 , 516741 , 572029 );
Copy
4
2.80 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
417427
420654
421579
438333
439445
452300
455719
456174
464528
469569
470207
473575
475367
475379
476492
486888
500749
502216
502579
505736
508510
514407
515107
516078
516741
517088
519503
520134
520201
520203
520789
521504
522314
525428
529376
529776
536903
543340
543364
545680
551872
555057
557226
560287
567509
567883
572029
576739
577582
583990
593129
595465
595630
605589
609774
626329
659981
661365
662782
674474
681539
707701
717236
726549
726701
745397
748046
]
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 (417427 , 420654 , 421579 , 438333 , 439445 , 452300 , 455719 , 456174 , 464528 , 469569 , 470207 , 473575 , 475367 , 475379 , 476492 , 486888 , 500749 , 502216 , 502579 , 505736 , 508510 , 514407 , 515107 , 516078 , 516741 , 517088 , 519503 , 520134 , 520201 , 520203 , 520789 , 521504 , 522314 , 525428 , 529376 , 529776 , 536903 , 543340 , 543364 , 545680 , 551872 , 555057 , 557226 , 560287 , 567509 , 567883 , 572029 , 576739 , 577582 , 583990 , 593129 , 595465 , 595630 , 605589 , 609774 , 626329 , 659981 , 661365 , 662782 , 674474 , 681539 , 707701 , 717236 , 726549 , 726701 , 745397 , 748046 );
Copy
5
100.20 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
417427
420654
421579
438333
439445
452300
455719
456174
464528
469569
470207
473575
475367
475379
476492
486888
500749
502216
502579
505736
508510
514407
515107
516078
516741
517088
519503
520134
520201
520203
520789
521504
522314
525428
529376
529776
536903
543340
543364
545680
551872
555057
557226
560287
567509
567883
572029
576739
577582
583990
593129
595465
595630
605589
609774
626329
659981
661365
662782
674474
681539
707701
717236
726549
726701
745397
748046
]
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 (417427 , 420654 , 421579 , 438333 , 439445 , 452300 , 455719 , 456174 , 464528 , 469569 , 470207 , 473575 , 475367 , 475379 , 476492 , 486888 , 500749 , 502216 , 502579 , 505736 , 508510 , 514407 , 515107 , 516078 , 516741 , 517088 , 519503 , 520134 , 520201 , 520203 , 520789 , 521504 , 522314 , 525428 , 529376 , 529776 , 536903 , 543340 , 543364 , 545680 , 551872 , 555057 , 557226 , 560287 , 567509 , 567883 , 572029 , 576739 , 577582 , 583990 , 593129 , 595465 , 595630 , 605589 , 609774 , 626329 , 659981 , 661365 , 662782 , 674474 , 681539 , 707701 , 717236 , 726549 , 726701 , 745397 , 748046 );
Copy