Comments (10)
Hi, I am experiencing same issue, image taking too much time.
Can anyone tell me whether this gem directly uploads image on dropbox or server is involved in uploading image to dropbox?
Because a friend of mine told me that if your server is doing this part then its gonna crush when there are 5 or 6 requests simultaneously.
from carrierwave-dropbox.
Hello @izelnakri,
Thanks for reporting! Sorry for the late reply, I will try to take a look soon!
from carrierwave-dropbox.
there are actually more issues with this gem, just like its paperclip sibling. Some of the issues I've raised in the paperclip gem is relevant for this gem as well. Please take a look at it: janko/paperclip-dropbox#36.
I wish I could contribute to the gem since it seems like one of the worst gems I'm currently using so far, days of frustration over some wrong implementations or bad conventions. (No offense here, just objective opinion). However I'm not very good with metaprogramming in ruby yet. Thanks for your interest!
from carrierwave-dropbox.
@izelnakri , @robin850 I have same issue right now. However I can't simply specify Dropbox URL as it changes each time I upload file, for example:
dl.dropboxusercontent.com/1/view/df106vuup1mzftx/Apps/[YOURAPP/[YOURFILE]
dl.dropboxusercontent.com/1/view/mxbs026yru67ln0/Apps/[YOURAPP/[YOURFILE]
dl.dropboxusercontent.com/1/view/2cc9lrqlglfxga3/Apps/[YOURAPP/[YOURFILE]
from carrierwave-dropbox.
Here is the command line output with rendering times of one view and 2 linked pictures:
Now the same view, no images (I commented out the whole link):
I repeat, this happens notoriously and I am trying to investigate whats wrong with the routing urls of this gem.
from carrierwave-dropbox.
I am having similar issues with this gem as for as performance is concerned. I don't see any optimizations which are done on this, are there any tweaks we can do to avoid this performance issue.
from carrierwave-dropbox.
Hi there!
Sorry for the very late response! Actually I'm wondering whether the problem lies in this gem ; this seems to be a problem on the dropbox_sdk
gem:
require 'benchmark'
require 'dropbox_sdk'
session = DropboxSession.new("app_key", "app_secret")
session.set_access_token("access_token", "acces_token_secret")
client = DropboxClient.new(session, "dropbox")
puts Benchmark.measure {
client.media("/path/to/existing/image.png")["url"]
}
It takes a whole second to run on my computer:
0.010000 0.000000 0.010000 ( 1.055575)
I will further investigate, thanks for reporting guys! 👍
from carrierwave-dropbox.
I am having similar issue too
from carrierwave-dropbox.
I am having similar issue too
from carrierwave-dropbox.
Just wanted to confirm that the issue lies with dropbox_sdk gem (as @robin850 mentioned). I have run benchmarks on every method down the call stack, and the only point where it significantly slows down (sometimes up to 2 seconds!) is main HTTP call inside Dropbox SDK
from carrierwave-dropbox.
Related Issues (20)
- DropboxAuthError (User is not authenticated.) HOT 1
- Problem uploading files to Dropbox folder
- rake task: Couldn't get access token. Server returned 401: Unauthorized. HOT 2
- undefined method 'content_type' for #Hash HOT 1
- undefined method `gsub' for nil:NilClass HOT 2
- Check whether image exists or not in dropbox
- undefined method `gsub' for nil:NilClass HOT 4
- undefined method `gsub' for nil:NilClass HOT 3
- Also Why you guys not give a full example on this?
- Slow request speed. HOT 2
- Dropbox make private "public folder" HOT 1
- Undefined method when running recreate_versions!
- v1_retired HOT 8
- DropboxAuthError: Error getting request token HOT 1
- Uploaded image direct link?
- Gem doesn't work with the new Dropbox v2 api HOT 1
- Accessing file versions
- Support for dropbox short-lived tokens
- Still mantained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carrierwave-dropbox.