8
11.97 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
461006
461005
461002
457129
452067
450861
450858
450659
450657
450653
450648
450646
450643
449558
443655
443650
443645
443642
443640
443599
443587
435060
435045
429649
429298
429288
429280
429276
429275
429273
429268
429266
429265
429264
429263
429261
429256
429254
429252
429251
429247
429239
428242
427949
426654
425738
423845
421243
420232
418882
418707
418403
414340
413801
413262
409984
409214
409134
408686
402530
398697
398673
398225
396762
396374
396319
395520
395218
386959
360205
233748
229010
194398
]
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 (461006 , 461005 , 461002 , 457129 , 452067 , 450861 , 450858 , 450659 , 450657 , 450653 , 450648 , 450646 , 450643 , 449558 , 443655 , 443650 , 443645 , 443642 , 443640 , 443599 , 443587 , 435060 , 435045 , 429649 , 429298 , 429288 , 429280 , 429276 , 429275 , 429273 , 429268 , 429266 , 429265 , 429264 , 429263 , 429261 , 429256 , 429254 , 429252 , 429251 , 429247 , 429239 , 428242 , 427949 , 426654 , 425738 , 423845 , 421243 , 420232 , 418882 , 418707 , 418403 , 414340 , 413801 , 413262 , 409984 , 409214 , 409134 , 408686 , 402530 , 398697 , 398673 , 398225 , 396762 , 396374 , 396319 , 395520 , 395218 , 386959 , 360205 , 233748 , 229010 , 194398 );
Copy
9
3.66 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
194398
229010
233748
360205
386959
395218
395520
396319
396374
396762
398225
398673
398697
402530
408686
409134
409214
409984
413262
413801
414340
418403
418707
418882
420232
421243
423845
425738
426654
427949
428242
429239
429247
429251
429252
429254
429256
429261
429263
429264
429265
429266
429268
429273
429275
429276
429280
429288
429298
429649
435045
435060
443587
443599
443640
443642
443645
443650
443655
449558
450643
450646
450648
450653
450657
450659
450858
450861
452067
457129
461002
461005
461006
]
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 (194398 , 229010 , 233748 , 360205 , 386959 , 395218 , 395520 , 396319 , 396374 , 396762 , 398225 , 398673 , 398697 , 402530 , 408686 , 409134 , 409214 , 409984 , 413262 , 413801 , 414340 , 418403 , 418707 , 418882 , 420232 , 421243 , 423845 , 425738 , 426654 , 427949 , 428242 , 429239 , 429247 , 429251 , 429252 , 429254 , 429256 , 429261 , 429263 , 429264 , 429265 , 429266 , 429268 , 429273 , 429275 , 429276 , 429280 , 429288 , 429298 , 429649 , 435045 , 435060 , 443587 , 443599 , 443640 , 443642 , 443645 , 443650 , 443655 , 449558 , 450643 , 450646 , 450648 , 450653 , 450657 , 450659 , 450858 , 450861 , 452067 , 457129 , 461002 , 461005 , 461006 );
Copy
10
105.25 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
194398
229010
233748
360205
386959
395218
395520
396319
396374
396762
398225
398673
398697
402530
408686
409134
409214
409984
413262
413801
414340
418403
418707
418882
420232
421243
423845
425738
426654
427949
428242
429239
429247
429251
429252
429254
429256
429261
429263
429264
429265
429266
429268
429273
429275
429276
429280
429288
429298
429649
435045
435060
443587
443599
443640
443642
443645
443650
443655
449558
450643
450646
450648
450653
450657
450659
450858
450861
452067
457129
461002
461005
461006
]
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 (194398 , 229010 , 233748 , 360205 , 386959 , 395218 , 395520 , 396319 , 396374 , 396762 , 398225 , 398673 , 398697 , 402530 , 408686 , 409134 , 409214 , 409984 , 413262 , 413801 , 414340 , 418403 , 418707 , 418882 , 420232 , 421243 , 423845 , 425738 , 426654 , 427949 , 428242 , 429239 , 429247 , 429251 , 429252 , 429254 , 429256 , 429261 , 429263 , 429264 , 429265 , 429266 , 429268 , 429273 , 429275 , 429276 , 429280 , 429288 , 429298 , 429649 , 435045 , 435060 , 443587 , 443599 , 443640 , 443642 , 443645 , 443650 , 443655 , 449558 , 450643 , 450646 , 450648 , 450653 , 450657 , 450659 , 450858 , 450861 , 452067 , 457129 , 461002 , 461005 , 461006 );
Copy