ddb icon indicating copy to clipboard operation
ddb copied to clipboard

slow query with vibe.d

Open zafer06 opened this issue 6 years ago • 7 comments

I use ddb in vibe.d project. I updated my project to vibe.d 0.8.3 but my queries is very slow. Any suggestion?

zafer06 avatar Mar 14 '18 06:03 zafer06

Could you provide any more information?

jacob-carlborg avatar Mar 14 '18 07:03 jacob-carlborg

Could you please try the libevent sub configuration and see if it makes any difference?

jacob-carlborg avatar Mar 14 '18 07:03 jacob-carlborg

In vibe.d that is.

jacob-carlborg avatar Mar 14 '18 07:03 jacob-carlborg

Test results:

dmd 2.078.3 -- dub 1.7.2 -- vibe.d 0.8.2
====>> Working Time: 300 msecs . 300622 usecs . 300622200 nsecs -- 0.3 seconds


dmd 2.079.0 -- dub 1.8.0 -- vibe.d 0.8.3
====>> Working Time: 29609 msecs . 29609010 usecs . 29609010400 nsecs -- 29.609 seconds


dmd 2.079.0 -- dub 1.8.0 -- vibe.d 0.8.3 (subConfiguration "vibe-d:core" "libevent")
====>> Working Time: 29674 msecs . 29674573 usecs . 29674573200 nsecs -- 29.674 seconds

zafer06 avatar Mar 14 '18 10:03 zafer06

You’re comparing using different versions of DMD, is it possible to use the same version?

jacob-carlborg avatar Mar 14 '18 11:03 jacob-carlborg

I think, problem is vibe.d 0.8.3 release.

dmd 2.078.3 -- dub 1.7.2 -- vibe.d 0.8.2
====>> Working Time: 300 msecs . 300622 usecs . 300622200 nsecs -- 0.3 seconds

dmd 2.078.3 -- dub 1.7.2 -- vibe.d 0.8.3
====>> Working Time: 29727 msecs . 29727536 usecs . 29727536200 nsecs -- 29.727 seconds

zafer06 avatar Mar 14 '18 14:03 zafer06

Perhaps report an issue to vibe.d.

jacob-carlborg avatar Mar 14 '18 17:03 jacob-carlborg