3
9.37 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
708421
720385
827523
805598
759485
630678
625412
429198
484721
584001
312264
705519
505625
705278
705518
643007
805602
739860
617410
467555
744306
770882
793471
597242
603616
748549
805587
528761
486470
466188
383075
775817
670763
477340
512525
405016
574762
479866
720245
515231
486413
561117
451064
568177
561412
609812
601478
759639
550820
512490
479126
569692
716032
634185
641455
457165
558122
756395
483319
381752
565277
615718
605450
680207
553272
562814
]
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 (708421 , 720385 , 827523 , 805598 , 759485 , 630678 , 625412 , 429198 , 484721 , 584001 , 312264 , 705519 , 505625 , 705278 , 705518 , 643007 , 805602 , 739860 , 617410 , 467555 , 744306 , 770882 , 793471 , 597242 , 603616 , 748549 , 805587 , 528761 , 486470 , 466188 , 383075 , 775817 , 670763 , 477340 , 512525 , 405016 , 574762 , 479866 , 720245 , 515231 , 486413 , 561117 , 451064 , 568177 , 561412 , 609812 , 601478 , 759639 , 550820 , 512490 , 479126 , 569692 , 716032 , 634185 , 641455 , 457165 , 558122 , 756395 , 483319 , 381752 , 565277 , 615718 , 605450 , 680207 , 553272 , 562814 );
Copy
4
3.33 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
312264
381752
383075
405016
429198
451064
457165
466188
467555
477340
479126
479866
483319
484721
486413
486470
505625
512490
512525
515231
528761
550820
553272
558122
561117
561412
562814
565277
568177
569692
574762
584001
597242
601478
603616
605450
609812
615718
617410
625412
630678
634185
641455
643007
670763
680207
705278
705518
705519
708421
716032
720245
720385
739860
744306
748549
756395
759485
759639
770882
775817
793471
805587
805598
805602
827523
]
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 (312264 , 381752 , 383075 , 405016 , 429198 , 451064 , 457165 , 466188 , 467555 , 477340 , 479126 , 479866 , 483319 , 484721 , 486413 , 486470 , 505625 , 512490 , 512525 , 515231 , 528761 , 550820 , 553272 , 558122 , 561117 , 561412 , 562814 , 565277 , 568177 , 569692 , 574762 , 584001 , 597242 , 601478 , 603616 , 605450 , 609812 , 615718 , 617410 , 625412 , 630678 , 634185 , 641455 , 643007 , 670763 , 680207 , 705278 , 705518 , 705519 , 708421 , 716032 , 720245 , 720385 , 739860 , 744306 , 748549 , 756395 , 759485 , 759639 , 770882 , 775817 , 793471 , 805587 , 805598 , 805602 , 827523 );
Copy
5
102.46 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
312264
381752
383075
405016
429198
451064
457165
466188
467555
477340
479126
479866
483319
484721
486413
486470
505625
512490
512525
515231
528761
550820
553272
558122
561117
561412
562814
565277
568177
569692
574762
584001
597242
601478
603616
605450
609812
615718
617410
625412
630678
634185
641455
643007
670763
680207
705278
705518
705519
708421
716032
720245
720385
739860
744306
748549
756395
759485
759639
770882
775817
793471
805587
805598
805602
827523
]
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 (312264 , 381752 , 383075 , 405016 , 429198 , 451064 , 457165 , 466188 , 467555 , 477340 , 479126 , 479866 , 483319 , 484721 , 486413 , 486470 , 505625 , 512490 , 512525 , 515231 , 528761 , 550820 , 553272 , 558122 , 561117 , 561412 , 562814 , 565277 , 568177 , 569692 , 574762 , 584001 , 597242 , 601478 , 603616 , 605450 , 609812 , 615718 , 617410 , 625412 , 630678 , 634185 , 641455 , 643007 , 670763 , 680207 , 705278 , 705518 , 705519 , 708421 , 716032 , 720245 , 720385 , 739860 , 744306 , 748549 , 756395 , 759485 , 759639 , 770882 , 775817 , 793471 , 805587 , 805598 , 805602 , 827523 );
Copy