Приложение
Скачайте приложение сейчас
и получите 7 дней пения бесплатно
Полный доступ к исполнению песен.
Без рекламы. Более 20 000 караоке-песен у вас в руках.
Скачать
Первые 7 дней
бесплатно
DoReMi
SQL Запросы
[2025-04-24 06:19:46] srv1.dev:11311> get:site_sessh2buk7s0jomhmcaeiu8v2trbjn
[2025-04-24 06:19:46] srv1.dev:11211> get:site_sessh2buk7s0jomhmcaeiu8v2trbjn
[2025-04-24 06:19:46] srv1.dev:11211> get:content_author_top5
[2025-04-24 06:19:46] srv1.dev:11211> get:content_collection_top5
[2025-04-24 06:19:46] srv1.dev:11311> get:content_song_top5
[2025-04-24 06:19:46] srv1.dev:11211> get:key_page_entity_collection_v7_3
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> 
            select c.*
            from collection c
            LEFT JOIN collection_vendor AS cv ON c.id = cv.collection_id
         where (cv.vendor_id IS NULL or cv.vendor_id = '6') and ("id" in ('8','46','9','10','5','6','2','4','3','17','18','1','11')) order by position(id::text in '8,46,9,10,5,6,2,4,3,17,18,1,11')
[2025-04-24 06:19:46] srv1.dev:11211> get:key_page_entity_collection_v7_1
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> 
                select
                    id
                from (
                    select
                        id,
                        name
                    from
                        author
                    where
                        song_count > 10
                        and alias is not null
                        and image is not null
                    order by
                        random()
                    limit 18
                ) as t
                order by
                    name
            
[2025-04-24 06:19:46] srv1.dev:11211> set:key_page_entity_collection_v7_1
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select "author".* from "author" where ("id" in ('1782','4772','408','4297','1618','3054','3326','3722','3739','4485','1536','479','1493','4014','2217','106','4576','2316')) order by position(id::text in '1782,4772,408,4297,1618,3054,3326,3722,3739,4485,1536,479,1493,4014,2217,106,4576,2316')
[2025-04-24 06:19:46] srv1.dev:11211> get:content_collection_songs_8_12
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select cs.song_id id, cs.sort 
            from collection_song cs
            join song s on s.id = cs.song_id
            where cs.collection_id = '8'
                and s.age_limit <> '18'
                and s.expire_at > now() + interval '5 minute'
            order by cs.sort
            limit '12'
[2025-04-24 06:19:46] srv1.dev:11211> set:content_collection_songs_8_12
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select "song_author"."song_id" __pr_pk,
                     "song_author"."author_id" __dp_pk, "song_author"."type_id" __dp_type_id, "song_author"."sort" __dp_sort, "song_author"."is_main_author" __dp_is_main_author from "song_author" where ("song_author"."song_id" in (3619847,5557,5270,5040,4814,3687953,3619940,3687951,3687765,3712350,3619851,10397,3619854,3619844,3619945,3619871)) and ("type_id" = '3') and ("is_main_author" = '1')
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select "author".* from "author" where "id" in ('1944','347022','736','2240','1894','1619224','1541918','1619221','1619342','98624','3539','460589','1541815','1365136','98620')
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> 
            select c.*
            from collection c
            LEFT JOIN collection_vendor AS cv ON c.id = cv.collection_id
         where "id" in ('5','4','7','1','3')
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select "song".* from "song" where "id" in ('3619847','5557','5270','5040','4814','3687953','3619940','3687951','3687765','3712350','3619851','10397','3619854','3619844','3619945','3619871')
[2025-04-24 06:19:46] srv1.dev:11311> get:content_author_alphabet
[2025-04-24 06:19:46] karaoke_site@10.129.0.5:5432> select * from "author" where "id" = '4297'
[2025-04-24 06:19:46] srv1.dev:11211> set:site_sessh2buk7s0jomhmcaeiu8v2trbjn
[2025-04-24 06:19:46] srv1.dev:11311> set:site_sessh2buk7s0jomhmcaeiu8v2trbjn