3
14.67 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
421831
421859
439666
478292
421865
422204
445707
421820
421832
433388
507086
492133
508442
508721
535448
493171
505821
511141
519569
528163
419594
454523
462348
486812
471631
522785
536335
535335
533697
573726
591692
589681
782516
427972
430810
433269
438045
439631
439661
440614
457417
444361
449356
466160
444045
446059
518219
495660
508699
489382
498402
531466
527065
616336
421833
439764
439772
439755
477260
493464
500430
524792
521239
607630
524780
643252
512094
522556
513047
]
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 (421831 , 421859 , 439666 , 478292 , 421865 , 422204 , 445707 , 421820 , 421832 , 433388 , 507086 , 492133 , 508442 , 508721 , 535448 , 493171 , 505821 , 511141 , 519569 , 528163 , 419594 , 454523 , 462348 , 486812 , 471631 , 522785 , 536335 , 535335 , 533697 , 573726 , 591692 , 589681 , 782516 , 427972 , 430810 , 433269 , 438045 , 439631 , 439661 , 440614 , 457417 , 444361 , 449356 , 466160 , 444045 , 446059 , 518219 , 495660 , 508699 , 489382 , 498402 , 531466 , 527065 , 616336 , 421833 , 439764 , 439772 , 439755 , 477260 , 493464 , 500430 , 524792 , 521239 , 607630 , 524780 , 643252 , 512094 , 522556 , 513047 );
Copy
4
2.92 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
419594
421820
421831
421832
421833
421859
421865
422204
427972
430810
433269
433388
438045
439631
439661
439666
439755
439764
439772
440614
444045
444361
445707
446059
449356
454523
457417
462348
466160
471631
477260
478292
486812
489382
492133
493171
493464
495660
498402
500430
505821
507086
508442
508699
508721
511141
512094
513047
518219
519569
521239
522556
522785
524780
524792
527065
528163
531466
533697
535335
535448
536335
573726
589681
591692
607630
616336
643252
782516
]
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 (419594 , 421820 , 421831 , 421832 , 421833 , 421859 , 421865 , 422204 , 427972 , 430810 , 433269 , 433388 , 438045 , 439631 , 439661 , 439666 , 439755 , 439764 , 439772 , 440614 , 444045 , 444361 , 445707 , 446059 , 449356 , 454523 , 457417 , 462348 , 466160 , 471631 , 477260 , 478292 , 486812 , 489382 , 492133 , 493171 , 493464 , 495660 , 498402 , 500430 , 505821 , 507086 , 508442 , 508699 , 508721 , 511141 , 512094 , 513047 , 518219 , 519569 , 521239 , 522556 , 522785 , 524780 , 524792 , 527065 , 528163 , 531466 , 533697 , 535335 , 535448 , 536335 , 573726 , 589681 , 591692 , 607630 , 616336 , 643252 , 782516 );
Copy
5
91.37 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
419594
421820
421831
421832
421833
421859
421865
422204
427972
430810
433269
433388
438045
439631
439661
439666
439755
439764
439772
440614
444045
444361
445707
446059
449356
454523
457417
462348
466160
471631
477260
478292
486812
489382
492133
493171
493464
495660
498402
500430
505821
507086
508442
508699
508721
511141
512094
513047
518219
519569
521239
522556
522785
524780
524792
527065
528163
531466
533697
535335
535448
536335
573726
589681
591692
607630
616336
643252
782516
]
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 (419594 , 421820 , 421831 , 421832 , 421833 , 421859 , 421865 , 422204 , 427972 , 430810 , 433269 , 433388 , 438045 , 439631 , 439661 , 439666 , 439755 , 439764 , 439772 , 440614 , 444045 , 444361 , 445707 , 446059 , 449356 , 454523 , 457417 , 462348 , 466160 , 471631 , 477260 , 478292 , 486812 , 489382 , 492133 , 493171 , 493464 , 495660 , 498402 , 500430 , 505821 , 507086 , 508442 , 508699 , 508721 , 511141 , 512094 , 513047 , 518219 , 519569 , 521239 , 522556 , 522785 , 524780 , 524792 , 527065 , 528163 , 531466 , 533697 , 535335 , 535448 , 536335 , 573726 , 589681 , 591692 , 607630 , 616336 , 643252 , 782516 );
Copy