7
12.25 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
429861
429848
428761
427981
427946
427252
427245
427115
426553
426503
425192
424385
424379
424375
424370
424364
424332
424129
424038
423584
423516
420839
420638
419816
419609
419352
419030
418623
418139
418133
418067
417674
417400
415874
415311
413432
413373
411036
410239
402793
402784
400775
400032
398885
397917
397536
397396
396447
396334
394490
393185
392238
391950
391754
391604
390771
381740
361909
209216
193462
182110
178561
178441
66799
]
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 (429861 , 429848 , 428761 , 427981 , 427946 , 427252 , 427245 , 427115 , 426553 , 426503 , 425192 , 424385 , 424379 , 424375 , 424370 , 424364 , 424332 , 424129 , 424038 , 423584 , 423516 , 420839 , 420638 , 419816 , 419609 , 419352 , 419030 , 418623 , 418139 , 418133 , 418067 , 417674 , 417400 , 415874 , 415311 , 413432 , 413373 , 411036 , 410239 , 402793 , 402784 , 400775 , 400032 , 398885 , 397917 , 397536 , 397396 , 396447 , 396334 , 394490 , 393185 , 392238 , 391950 , 391754 , 391604 , 390771 , 381740 , 361909 , 209216 , 193462 , 182110 , 178561 , 178441 , 66799 );
Copy
8
2.73 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
66799
178441
178561
182110
193462
209216
361909
381740
390771
391604
391754
391950
392238
393185
394490
396334
396447
397396
397536
397917
398885
400032
400775
402784
402793
410239
411036
413373
413432
415311
415874
417400
417674
418067
418133
418139
418623
419030
419352
419609
419816
420638
420839
423516
423584
424038
424129
424332
424364
424370
424375
424379
424385
425192
426503
426553
427115
427245
427252
427946
427981
428761
429848
429861
]
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 (66799 , 178441 , 178561 , 182110 , 193462 , 209216 , 361909 , 381740 , 390771 , 391604 , 391754 , 391950 , 392238 , 393185 , 394490 , 396334 , 396447 , 397396 , 397536 , 397917 , 398885 , 400032 , 400775 , 402784 , 402793 , 410239 , 411036 , 413373 , 413432 , 415311 , 415874 , 417400 , 417674 , 418067 , 418133 , 418139 , 418623 , 419030 , 419352 , 419609 , 419816 , 420638 , 420839 , 423516 , 423584 , 424038 , 424129 , 424332 , 424364 , 424370 , 424375 , 424379 , 424385 , 425192 , 426503 , 426553 , 427115 , 427245 , 427252 , 427946 , 427981 , 428761 , 429848 , 429861 );
Copy
9
96.29 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
66799
178441
178561
182110
193462
209216
361909
381740
390771
391604
391754
391950
392238
393185
394490
396334
396447
397396
397536
397917
398885
400032
400775
402784
402793
410239
411036
413373
413432
415311
415874
417400
417674
418067
418133
418139
418623
419030
419352
419609
419816
420638
420839
423516
423584
424038
424129
424332
424364
424370
424375
424379
424385
425192
426503
426553
427115
427245
427252
427946
427981
428761
429848
429861
]
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 (66799 , 178441 , 178561 , 182110 , 193462 , 209216 , 361909 , 381740 , 390771 , 391604 , 391754 , 391950 , 392238 , 393185 , 394490 , 396334 , 396447 , 397396 , 397536 , 397917 , 398885 , 400032 , 400775 , 402784 , 402793 , 410239 , 411036 , 413373 , 413432 , 415311 , 415874 , 417400 , 417674 , 418067 , 418133 , 418139 , 418623 , 419030 , 419352 , 419609 , 419816 , 420638 , 420839 , 423516 , 423584 , 424038 , 424129 , 424332 , 424364 , 424370 , 424375 , 424379 , 424385 , 425192 , 426503 , 426553 , 427115 , 427245 , 427252 , 427946 , 427981 , 428761 , 429848 , 429861 );
Copy