4
14.23 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
801091
825241
568228
620496
643335
738378
770120
651023
807788
696983
804657
804585
750873
773863
740903
807789
540383
533529
792550
14225
762663
653392
477472
738673
383477
517605
603539
531532
536309
738209
443637
494289
420185
531914
651102
732993
491771
453194
663438
663367
801064
827290
453244
536585
808752
725633
798275
732782
420301
427907
459637
447694
520186
521275
733587
601101
366354
461036
318700
464336
465698
569098
544834
614742
464359
675515
554770
716811
583371
]
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 (801091 , 825241 , 568228 , 620496 , 643335 , 738378 , 770120 , 651023 , 807788 , 696983 , 804657 , 804585 , 750873 , 773863 , 740903 , 807789 , 540383 , 533529 , 792550 , 14225 , 762663 , 653392 , 477472 , 738673 , 383477 , 517605 , 603539 , 531532 , 536309 , 738209 , 443637 , 494289 , 420185 , 531914 , 651102 , 732993 , 491771 , 453194 , 663438 , 663367 , 801064 , 827290 , 453244 , 536585 , 808752 , 725633 , 798275 , 732782 , 420301 , 427907 , 459637 , 447694 , 520186 , 521275 , 733587 , 601101 , 366354 , 461036 , 318700 , 464336 , 465698 , 569098 , 544834 , 614742 , 464359 , 675515 , 554770 , 716811 , 583371 );
Copy
5
3.18 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
14225
318700
366354
383477
420185
420301
427907
443637
447694
453194
453244
459637
461036
464336
464359
465698
477472
491771
494289
517605
520186
521275
531532
531914
533529
536309
536585
540383
544834
554770
568228
569098
583371
601101
603539
614742
620496
643335
651023
651102
653392
663367
663438
675515
696983
716811
725633
732782
732993
733587
738209
738378
738673
740903
750873
762663
770120
773863
792550
798275
801064
801091
804585
804657
807788
807789
808752
825241
827290
]
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 (14225 , 318700 , 366354 , 383477 , 420185 , 420301 , 427907 , 443637 , 447694 , 453194 , 453244 , 459637 , 461036 , 464336 , 464359 , 465698 , 477472 , 491771 , 494289 , 517605 , 520186 , 521275 , 531532 , 531914 , 533529 , 536309 , 536585 , 540383 , 544834 , 554770 , 568228 , 569098 , 583371 , 601101 , 603539 , 614742 , 620496 , 643335 , 651023 , 651102 , 653392 , 663367 , 663438 , 675515 , 696983 , 716811 , 725633 , 732782 , 732993 , 733587 , 738209 , 738378 , 738673 , 740903 , 750873 , 762663 , 770120 , 773863 , 792550 , 798275 , 801064 , 801091 , 804585 , 804657 , 807788 , 807789 , 808752 , 825241 , 827290 );
Copy
6
76.80 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
14225
318700
366354
383477
420185
420301
427907
443637
447694
453194
453244
459637
461036
464336
464359
465698
477472
491771
494289
517605
520186
521275
531532
531914
533529
536309
536585
540383
544834
554770
568228
569098
583371
601101
603539
614742
620496
643335
651023
651102
653392
663367
663438
675515
696983
716811
725633
732782
732993
733587
738209
738378
738673
740903
750873
762663
770120
773863
792550
798275
801064
801091
804585
804657
807788
807789
808752
825241
827290
]
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 (14225 , 318700 , 366354 , 383477 , 420185 , 420301 , 427907 , 443637 , 447694 , 453194 , 453244 , 459637 , 461036 , 464336 , 464359 , 465698 , 477472 , 491771 , 494289 , 517605 , 520186 , 521275 , 531532 , 531914 , 533529 , 536309 , 536585 , 540383 , 544834 , 554770 , 568228 , 569098 , 583371 , 601101 , 603539 , 614742 , 620496 , 643335 , 651023 , 651102 , 653392 , 663367 , 663438 , 675515 , 696983 , 716811 , 725633 , 732782 , 732993 , 733587 , 738209 , 738378 , 738673 , 740903 , 750873 , 762663 , 770120 , 773863 , 792550 , 798275 , 801064 , 801091 , 804585 , 804657 , 807788 , 807789 , 808752 , 825241 , 827290 );
Copy