3
10.84 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
498591
449435
503385
526221
504989
819144
637537
647847
632140
637425
475237
498560
512844
571212
450441
622402
396664
575806
463280
503405
459561
626597
605335
790218
441398
511359
426358
482086
530376
385192
424328
783559
648889
613508
444611
590088
483851
502756
429692
540944
440669
444884
434629
477842
764864
391432
514966
572023
11320
439318
515840
629045
569260
623920
598263
453039
502764
814198
473166
520496
469597
523236
521843
553272
589968
464642
571834
516227
666717
589105
420262
]
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 (498591 , 449435 , 503385 , 526221 , 504989 , 819144 , 637537 , 647847 , 632140 , 637425 , 475237 , 498560 , 512844 , 571212 , 450441 , 622402 , 396664 , 575806 , 463280 , 503405 , 459561 , 626597 , 605335 , 790218 , 441398 , 511359 , 426358 , 482086 , 530376 , 385192 , 424328 , 783559 , 648889 , 613508 , 444611 , 590088 , 483851 , 502756 , 429692 , 540944 , 440669 , 444884 , 434629 , 477842 , 764864 , 391432 , 514966 , 572023 , 11320 , 439318 , 515840 , 629045 , 569260 , 623920 , 598263 , 453039 , 502764 , 814198 , 473166 , 520496 , 469597 , 523236 , 521843 , 553272 , 589968 , 464642 , 571834 , 516227 , 666717 , 589105 , 420262 );
Copy
4
3.36 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
11320
385192
391432
396664
420262
424328
426358
429692
434629
439318
440669
441398
444611
444884
449435
450441
453039
459561
463280
464642
469597
473166
475237
477842
482086
483851
498560
498591
502756
502764
503385
503405
504989
511359
512844
514966
515840
516227
520496
521843
523236
526221
530376
540944
553272
569260
571212
571834
572023
575806
589105
589968
590088
598263
605335
613508
622402
623920
626597
629045
632140
637425
637537
647847
648889
666717
764864
790218
814198
819144
]
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 (11320 , 385192 , 391432 , 396664 , 420262 , 424328 , 426358 , 429692 , 434629 , 439318 , 440669 , 441398 , 444611 , 444884 , 449435 , 450441 , 453039 , 459561 , 463280 , 464642 , 469597 , 473166 , 475237 , 477842 , 482086 , 483851 , 498560 , 498591 , 502756 , 502764 , 503385 , 503405 , 504989 , 511359 , 512844 , 514966 , 515840 , 516227 , 520496 , 521843 , 523236 , 526221 , 530376 , 540944 , 553272 , 569260 , 571212 , 571834 , 572023 , 575806 , 589105 , 589968 , 590088 , 598263 , 605335 , 613508 , 622402 , 623920 , 626597 , 629045 , 632140 , 637425 , 637537 , 647847 , 648889 , 666717 , 764864 , 790218 , 814198 , 819144 );
Copy
5
100.69 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
11320
385192
391432
396664
420262
424328
426358
429692
434629
439318
440669
441398
444611
444884
449435
450441
453039
459561
463280
464642
469597
473166
475237
477842
482086
483851
498560
498591
502756
502764
503385
503405
504989
511359
512844
514966
515840
516227
520496
521843
523236
526221
530376
540944
553272
569260
571212
571834
572023
575806
589105
589968
590088
598263
605335
613508
622402
623920
626597
629045
632140
637425
637537
647847
648889
666717
764864
790218
814198
819144
]
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 (11320 , 385192 , 391432 , 396664 , 420262 , 424328 , 426358 , 429692 , 434629 , 439318 , 440669 , 441398 , 444611 , 444884 , 449435 , 450441 , 453039 , 459561 , 463280 , 464642 , 469597 , 473166 , 475237 , 477842 , 482086 , 483851 , 498560 , 498591 , 502756 , 502764 , 503385 , 503405 , 504989 , 511359 , 512844 , 514966 , 515840 , 516227 , 520496 , 521843 , 523236 , 526221 , 530376 , 540944 , 553272 , 569260 , 571212 , 571834 , 572023 , 575806 , 589105 , 589968 , 590088 , 598263 , 605335 , 613508 , 622402 , 623920 , 626597 , 629045 , 632140 , 637425 , 637537 , 647847 , 648889 , 666717 , 764864 , 790218 , 814198 , 819144 );
Copy