7
11.86 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
777066
776824
769645
716784
716245
714419
711893
710368
624201
622056
610573
604936
604883
587155
519108
485216
485134
485132
485131
482981
480396
480377
473505
465206
463712
448819
444475
437870
435695
433230
421200
413544
410651
408435
408060
407938
407801
407799
407627
407567
407458
407422
405830
405544
405542
404389
404286
402409
401615
400139
399595
398176
398174
398166
396890
396823
395576
395141
393082
393080
386935
386734
382387
350425
310708
202134
191406
191139
143572
78536
32761
12307
5344
]
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 (777066 , 776824 , 769645 , 716784 , 716245 , 714419 , 711893 , 710368 , 624201 , 622056 , 610573 , 604936 , 604883 , 587155 , 519108 , 485216 , 485134 , 485132 , 485131 , 482981 , 480396 , 480377 , 473505 , 465206 , 463712 , 448819 , 444475 , 437870 , 435695 , 433230 , 421200 , 413544 , 410651 , 408435 , 408060 , 407938 , 407801 , 407799 , 407627 , 407567 , 407458 , 407422 , 405830 , 405544 , 405542 , 404389 , 404286 , 402409 , 401615 , 400139 , 399595 , 398176 , 398174 , 398166 , 396890 , 396823 , 395576 , 395141 , 393082 , 393080 , 386935 , 386734 , 382387 , 350425 , 310708 , 202134 , 191406 , 191139 , 143572 , 78536 , 32761 , 12307 , 5344 );
Copy
8
2.78 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
5344
12307
32761
78536
143572
191139
191406
202134
310708
350425
382387
386734
386935
393080
393082
395141
395576
396823
396890
398166
398174
398176
399595
400139
401615
402409
404286
404389
405542
405544
405830
407422
407458
407567
407627
407799
407801
407938
408060
408435
410651
413544
421200
433230
435695
437870
444475
448819
463712
465206
473505
480377
480396
482981
485131
485132
485134
485216
519108
587155
604883
604936
610573
622056
624201
710368
711893
714419
716245
716784
769645
776824
777066
]
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 (5344 , 12307 , 32761 , 78536 , 143572 , 191139 , 191406 , 202134 , 310708 , 350425 , 382387 , 386734 , 386935 , 393080 , 393082 , 395141 , 395576 , 396823 , 396890 , 398166 , 398174 , 398176 , 399595 , 400139 , 401615 , 402409 , 404286 , 404389 , 405542 , 405544 , 405830 , 407422 , 407458 , 407567 , 407627 , 407799 , 407801 , 407938 , 408060 , 408435 , 410651 , 413544 , 421200 , 433230 , 435695 , 437870 , 444475 , 448819 , 463712 , 465206 , 473505 , 480377 , 480396 , 482981 , 485131 , 485132 , 485134 , 485216 , 519108 , 587155 , 604883 , 604936 , 610573 , 622056 , 624201 , 710368 , 711893 , 714419 , 716245 , 716784 , 769645 , 776824 , 777066 );
Copy
9
119.22 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
5344
12307
32761
78536
143572
191139
191406
202134
310708
350425
382387
386734
386935
393080
393082
395141
395576
396823
396890
398166
398174
398176
399595
400139
401615
402409
404286
404389
405542
405544
405830
407422
407458
407567
407627
407799
407801
407938
408060
408435
410651
413544
421200
433230
435695
437870
444475
448819
463712
465206
473505
480377
480396
482981
485131
485132
485134
485216
519108
587155
604883
604936
610573
622056
624201
710368
711893
714419
716245
716784
769645
776824
777066
]
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 (5344 , 12307 , 32761 , 78536 , 143572 , 191139 , 191406 , 202134 , 310708 , 350425 , 382387 , 386734 , 386935 , 393080 , 393082 , 395141 , 395576 , 396823 , 396890 , 398166 , 398174 , 398176 , 399595 , 400139 , 401615 , 402409 , 404286 , 404389 , 405542 , 405544 , 405830 , 407422 , 407458 , 407567 , 407627 , 407799 , 407801 , 407938 , 408060 , 408435 , 410651 , 413544 , 421200 , 433230 , 435695 , 437870 , 444475 , 448819 , 463712 , 465206 , 473505 , 480377 , 480396 , 482981 , 485131 , 485132 , 485134 , 485216 , 519108 , 587155 , 604883 , 604936 , 610573 , 622056 , 624201 , 710368 , 711893 , 714419 , 716245 , 716784 , 769645 , 776824 , 777066 );
Copy