LinuxMCE Forums
May 26, 2013, 12:53:22 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: Amazon Search = SLOW  (Read 1909 times)
rodercot
Guest
« on: July 23, 2008, 06:40:48 pm »

Hey Guys,

 Is anyone else finding Amazon's db slow to respond. It does not matter what type of serach I enter, could be keyword, title, actor, director. I do try to do this in off peak hours like late late at night or very early in the morning but it seems to make no difference I am still seeing a sometimes a minute and a half for a response sometimes longer. I try to be as specific about the title as I can.

 Dave
Logged
freymann
Douchebag
Guru
*
Posts: 380


View Profile
« Reply #1 on: July 23, 2008, 08:02:31 pm »

Is anyone else finding Amazon's db slow to respond. It does not matter what type of serach I enter, could be keyword, title, actor, director. I do try to do this in off peak hours like late late at night or very early in the morning but it seems to make no difference I am still seeing a sometimes a minute and a half for a response sometimes longer. I try to be as specific about the title as I can.

 Hi Dave.

 No, my Amazon lookups go very fast. I just did a couple searches a few minutes ago. Works like a charm here.
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #2 on: July 23, 2008, 11:54:58 pm »

depending on what search criteria I plug in, it can take upto 20 seconds, often only 10 seconds - but it certainly can be sluggish for some searches
Logged
rodercot
Guest
« Reply #3 on: July 25, 2008, 02:11:23 pm »

Colin,

 do you have anything setup for port fowarding in your router to the core. I am wondering if I need to add a port forwarding line for int or http to 80.1 for the core.

 rgds,

 Dave
Logged
colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #4 on: July 25, 2008, 09:23:45 pm »

no, port forwarding is only for inbound-initiated connections. When a new connection is initiated from the Internet to your public IP address, the router has no way of knowing where to send it without a fixed NAT/PAT/port-forward. Upnp can also provide this these days if the router supports it.

In the case of this type of look up, the connection is initiated from the core outbound. The router NATs this behind it's public IP address with a new source port number. So when traffic returns from Amazon on that connection to that port, the router already knows exactly where to send the traffic and on which TCP connection. No port forward required - in fact port forwards are ignored when processing inbound traffic on extant connections so setting one up wouldn't do anything anyway.

Sorry that isn't it!
Logged
royw
Guru
****
Posts: 261


View Profile
« Reply #5 on: July 26, 2008, 12:01:37 am »

When the search is really slow, how is your normal internet connection performance?  Maybe run broadband speed tests.  My experience is that the slowdowns were related to ISP/network issues and not amazon.com.

HTH,
Roy
Logged

colinjones
Alumni
LinuxMCE God
*
Posts: 3003


View Profile
« Reply #6 on: July 26, 2008, 01:21:24 am »

try speedtest.net it's very good. If you choose a node near you and still get up or down speeds widely varying from your router's sync speed you may have a lot of packet loss or worse your ISP is over subscribing you local DSLAM very heavily. Also, be aware that putting a lot of TCP connections through broadband routers often starves their resources and dramatically impacts performance. This is very easy to do with bittorrent clients if you leave a lot of files seeding.
Logged
rodercot
Guest
« Reply #7 on: July 26, 2008, 01:02:34 pm »

Hey Guys,

 Yes I went through this before with setting up torrents and slow dwnld speeds no matter what I tried to do. I am with Bell Sympatico and their ongoing BS to all subscribers. I have been looking for a new provider but for some reason one can give me internet but no phone and another can give me phone but not internet which bites.

 I am an a 5Mb connection and speed test show 1500mb's down on a really good day most of the time it is 950 or so. I complain to the isp but all i get is well your lines are no good in your area. WeLL! Are you not my provider of a service and I am paying you for the service and is it not your infastructure in place - Well fix your $@@#$% infrastructure! The phone lines drop on a regular basis in this area as well. My neighbors were without their phone for 3 days not a month ago.

 I have been holding off on VOIP for this exact reason. If this new company can finally close the deal with Bell then maybe we will get the long awaited line upgrade.

 The norm for me is 2-3 minutes per title when searching amazon from within the system. If I go to Amazon directly and do a search it is instant within 5 seconds anyhow and I can also pull up and surf other sites with no issues while the system is polling Amazon.

 Is the Amazon a hard coded thing or a scraper of some kind. How hard or wha would be the issue with using IMDB. What would have to be done to use imdb I guess is what I am asking, DEVS! now be nice this is just a question.  Grin

 Dave
Logged
royw
Guru
****
Posts: 261


View Profile
« Reply #8 on: July 26, 2008, 08:33:38 pm »

Is the Amazon a hard coded thing or a scraper of some kind. How hard or wha would be the issue with using IMDB. What would have to be done to use imdb I guess is what I am asking, DEVS! now be nice this is just a question.  Grin

Checkout the source, then grep for amazon.  You will notice there are quit a few php files that match.  Looking in them you will notice that they are using amazon's web API (basically exchanging xml fragments over http).  In my quick scan, I didn't see where the search is called on disk insertion, but seem to recall it using the local web server to use the php scripts.

HTH,
Roy
Logged

tschak909
LinuxMCE God
****
Posts: 5101

DOES work for LinuxMCE.


View Profile
« Reply #9 on: July 27, 2008, 02:11:14 am »

that's because Amazon isn't used for local disk insertions.

Instead, a media identifier is used, in particular, the External Media Identifier is used.

We do not have source code for this part, it's built privately at pluto, and it uses Windows Media Services to extract metadata.

Compared to the Amazon cover art scan, a lot more metadata is grabbed, in particular: chapter titles, better quality cover art, etc.

-Thom
Logged
royw
Guru
****
Posts: 261


View Profile
« Reply #10 on: July 27, 2008, 04:15:08 am »

Ah, so it's Windows Media Services I should be blaming for mis-identifying a disk as part of a multi-pack or furnishing an incorrect title.  Wink

I knew the images were coming from WMS, just didn't catch that the meta-data was too.

Thank you for the clarification.

Have fun,
Roy
Logged

rodercot
Guest
« Reply #11 on: July 27, 2008, 01:59:17 pm »

Thanks guys,

 It seems to be much better on the re-install from yesterday morning. 10-20 Seconds on Average via Keyword Search.


 rgds.

 Dave
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!