You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hat a "working" program and realized I made a logic error while querying - meaning I did not get all results. So I exchanged the sqlquery with a working one (tested in sqlite) but now my build does not compile any more. Not as usual that I forgot to change something... But now it starts compilation, compiles all the modules then maxes one CPU with my last module and does so forever cancelled after 15 min +, where it was done before in max 2 minutes on full rebuild.
I use sqlx in combination with actix-web which is why I can't use the most recent version.
sqlx={version="0.4", features = [ "sqlite", "macros", "runtime-actix-rustls", "chrono", "migrate" ]}
The logically incorrect but working query:
selectlinks.id,
links.title,
links.target,
links.code,
links.author,
links.created_at,
users.idas uid,
users.username,
users.email,
users.role,
count as count
from
links
join (
selectclicks.link,
count(clicks.id) as count
from
clicks
group byclicks.link
) onlinks.id= link
join users onlinks.author=users.id
The failing query:
selectlinks.id,
links.title,
links.target,
links.code,
links.author,
links.created_at,
users.idas uid,
users.username,
users.email,
users.role,
count(click) as count
from
links
left join (
selectclicks.link,
clicks.idas click
from
clicks
) onlinks.id= link
join users onlinks.author=users.idgroup bylinks.id
Use at your own discretion, as this might not be online forever (best would be to fork it yourself and maintain it there until you can switch to the latest version)
I hat a "working" program and realized I made a logic error while querying - meaning I did not get all results. So I exchanged the sqlquery with a working one (tested in sqlite) but now my build does not compile any more. Not as usual that I forgot to change something... But now it starts compilation, compiles all the modules then maxes one CPU with my last module and does so forever cancelled after 15 min +, where it was done before in max 2 minutes on full rebuild.
I use sqlx in combination with
actix-web
which is why I can't use the most recent version.The logically incorrect but working query:
The failing query:
the
.schema
The text was updated successfully, but these errors were encountered: