CREATE INDEX IF NOT EXISTS idx_mapinfo_map ON mapinfo(Map);
CREATE INDEX IF NOT EXISTS idx_maps_map ON maps(Map);
CREATE INDEX IF NOT EXISTS idx_maps_server ON maps(Server);
CREATE INDEX IF NOT EXISTS idx_maps_points ON maps(Points);
CREATE INDEX IF NOT EXISTS idx_maps_stars ON maps(Stars);
CREATE INDEX IF NOT EXISTS idx_maps_timestamp ON maps(Timestamp);
CREATE INDEX IF NOT EXISTS idx_race_map ON race(Map);
CREATE INDEX IF NOT EXISTS idx_race_name ON race(Name);
CREATE INDEX IF NOT EXISTS idx_race_time ON race(Time);
CREATE INDEX IF NOT EXISTS idx_race_timestamp ON race(Timestamp);
CREATE INDEX IF NOT EXISTS idx_teamrace_map ON teamrace(Map);
CREATE INDEX IF NOT EXISTS idx_teamrace_name ON teamrace(Name);
CREATE INDEX IF NOT EXISTS idx_teamrace_time ON teamrace(Time);
CREATE INDEX IF NOT EXISTS idx_teamrace_timestamp ON teamrace(Timestamp);
vacuum;
teamrace.ID
not indexed right now? a bit slow to query for teams now.SELECT t.Name, COUNT(t.ID) as Num
FROM teamrace t
WHERE t.ID IN (
SELECT ID
FROM teamrace
WHERE Name = 'Cor'
)
GROUP BY t.Name
ORDER BY Num DESC LIMIT 3;
CREATE INDEX IF NOT EXISTS idx_mapinfo_map ON mapinfo(Map);
CREATE INDEX IF NOT EXISTS idx_maps_map ON maps(Map);
CREATE INDEX IF NOT EXISTS idx_maps_server ON maps(Server);
CREATE INDEX IF NOT EXISTS idx_maps_points ON maps(Points);
CREATE INDEX IF NOT EXISTS idx_maps_stars ON maps(Stars);
CREATE INDEX IF NOT EXISTS idx_maps_mapper ON maps(Mapper);
CREATE INDEX IF NOT EXISTS idx_maps_timestamp ON maps(Timestamp);
CREATE INDEX IF NOT EXISTS idx_race_map ON race(Map);
CREATE INDEX IF NOT EXISTS idx_race_name ON race(Name);
CREATE INDEX IF NOT EXISTS idx_race_time ON race(Time);
CREATE INDEX IF NOT EXISTS idx_race_timestamp ON race(Timestamp);
CREATE INDEX IF NOT EXISTS idx_race_server ON race(Server);
CREATE INDEX IF NOT EXISTS idx_teamrace_map ON teamrace(Map);
CREATE INDEX IF NOT EXISTS idx_teamrace_name ON teamrace(Name);
CREATE INDEX IF NOT EXISTS idx_teamrace_time ON teamrace(Time);
CREATE INDEX IF NOT EXISTS idx_teamrace_timestamp ON teamrace(Timestamp);
update maps set timestamp='1970-01-01 00:00:00' where timestamp = '0000-00-00 00:00:00';
vacuum;
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 55M 6.3G 1% /run
/dev/md2 436G 185G 230G 45% /
====================[ Build | game-server | Debug ]=============================
D:\JetBrains\CLion\bin\cmake\win\x64\bin\cmake.exe --build D:\CLion\ddnet\cmake-build-debug --target game-server -j 10
[0/2] Generating debug/libddnet_engine_shared.a
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s
[2/2] Linking CXX executable DDNet-Server.exe
FAILED: DDNet-Server.exe
C:\Windows\system32\cmd.exe /C "cd . && D:\JetBrains\CLion\bin\mingw\bin\g++.exe -g @CMakeFiles\game-server.rsp -o DDNet-Server.exe -Wl,--out-implib,libDDNet-Server.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
D:\JetBrains\CLion\bin\mingw\bin/ld.exe: cannot find debug/libddnet_engine_shared.a: No such file or directory
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
I run rustup install stable-x86_64-pc-windows-msvc
after rustup default stable-x86_64-pc-windows-msvc
. Then I run the build but an error pops up. Can anyone help me? (edited)[0/2] Generating debug/libddnet_engine_shared.a
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
[2/2] Linking CXX executable DDNet-Server.exe
FAILED: DDNet-Server.exe
C:\Windows\system32\cmd.exe /C "cd . && D:\Programs\JetBrains\CLion\bin\mingw\bin\g++.exe -g @CMakeFiles\game-server.rsp -o DDNet-Server.exe -Wl,--out-implib,libDDNet-Server.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
D:\Programs\JetBrains\CLion\bin\mingw\bin/ld.exe: cannot find debug/libddnet_engine_shared.a: No such file or directory
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.