4
11.64 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
675145
675441
675654
675053
675691
605257
779506
738078
704221
481096
462570
477254
496606
487380
490270
493817
527577
490413
496123
498876
515719
494074
580880
675107
675675
654562
675660
675066
675104
675144
675703
675714
675723
605222
598298
601309
626064
480919
523773
509641
487318
552848
675081
675429
675431
675696
675725
675657
558386
455153
501433
526525
535445
505919
487087
466929
489382
503673
517587
580980
675435
675123
526853
591141
661256
605913
625215
518256
522035
]
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 (675145 , 675441 , 675654 , 675053 , 675691 , 605257 , 779506 , 738078 , 704221 , 481096 , 462570 , 477254 , 496606 , 487380 , 490270 , 493817 , 527577 , 490413 , 496123 , 498876 , 515719 , 494074 , 580880 , 675107 , 675675 , 654562 , 675660 , 675066 , 675104 , 675144 , 675703 , 675714 , 675723 , 605222 , 598298 , 601309 , 626064 , 480919 , 523773 , 509641 , 487318 , 552848 , 675081 , 675429 , 675431 , 675696 , 675725 , 675657 , 558386 , 455153 , 501433 , 526525 , 535445 , 505919 , 487087 , 466929 , 489382 , 503673 , 517587 , 580980 , 675435 , 675123 , 526853 , 591141 , 661256 , 605913 , 625215 , 518256 , 522035 );
Copy
5
2.79 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
455153
462570
466929
477254
480919
481096
487087
487318
487380
489382
490270
490413
493817
494074
496123
496606
498876
501433
503673
505919
509641
515719
517587
518256
522035
523773
526525
526853
527577
535445
552848
558386
580880
580980
591141
598298
601309
605222
605257
605913
625215
626064
654562
661256
675053
675066
675081
675104
675107
675123
675144
675145
675429
675431
675435
675441
675654
675657
675660
675675
675691
675696
675703
675714
675723
675725
704221
738078
779506
]
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 (455153 , 462570 , 466929 , 477254 , 480919 , 481096 , 487087 , 487318 , 487380 , 489382 , 490270 , 490413 , 493817 , 494074 , 496123 , 496606 , 498876 , 501433 , 503673 , 505919 , 509641 , 515719 , 517587 , 518256 , 522035 , 523773 , 526525 , 526853 , 527577 , 535445 , 552848 , 558386 , 580880 , 580980 , 591141 , 598298 , 601309 , 605222 , 605257 , 605913 , 625215 , 626064 , 654562 , 661256 , 675053 , 675066 , 675081 , 675104 , 675107 , 675123 , 675144 , 675145 , 675429 , 675431 , 675435 , 675441 , 675654 , 675657 , 675660 , 675675 , 675691 , 675696 , 675703 , 675714 , 675723 , 675725 , 704221 , 738078 , 779506 );
Copy
6
117.55 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
455153
462570
466929
477254
480919
481096
487087
487318
487380
489382
490270
490413
493817
494074
496123
496606
498876
501433
503673
505919
509641
515719
517587
518256
522035
523773
526525
526853
527577
535445
552848
558386
580880
580980
591141
598298
601309
605222
605257
605913
625215
626064
654562
661256
675053
675066
675081
675104
675107
675123
675144
675145
675429
675431
675435
675441
675654
675657
675660
675675
675691
675696
675703
675714
675723
675725
704221
738078
779506
]
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 (455153 , 462570 , 466929 , 477254 , 480919 , 481096 , 487087 , 487318 , 487380 , 489382 , 490270 , 490413 , 493817 , 494074 , 496123 , 496606 , 498876 , 501433 , 503673 , 505919 , 509641 , 515719 , 517587 , 518256 , 522035 , 523773 , 526525 , 526853 , 527577 , 535445 , 552848 , 558386 , 580880 , 580980 , 591141 , 598298 , 601309 , 605222 , 605257 , 605913 , 625215 , 626064 , 654562 , 661256 , 675053 , 675066 , 675081 , 675104 , 675107 , 675123 , 675144 , 675145 , 675429 , 675431 , 675435 , 675441 , 675654 , 675657 , 675660 , 675675 , 675691 , 675696 , 675703 , 675714 , 675723 , 675725 , 704221 , 738078 , 779506 );
Copy