简体   繁体   English

PHP和MySQL:下载带有Rets的所有MLS属性数据-带宽问题

[英]PHP and MySQL: Downloading all MLS Property Data with Rets - Bandwidth Issues

I've been working with the Rets system (specifically PHRets) for a while now and just recently started doing nightly downloads of data to store all the properties on my database, but after only three days I'm pushing 9GB's of bandwidth usage (I'm only allotted 100GB). 我已经使用Rets系统(特别是PHRets)已有一段时间了,最​​近才开始每晚下载数据以将所有属性存储在数据库中,但是仅三天后,我就推动了9GB的带宽使用(我'仅分配了100GB)。 Is there a way to optimize my downloading and whatnot so that I don't kill my bandwidth halfway through the month? 有没有一种方法可以优化我的下载,而不会让我在整个月的中途都不浪费带宽?

If you could just give basic steps or tips, I'll make it happen in my code. 如果您能给出基本的步骤或技巧,我将在代码中实现。

EX: Link up to RETS, query all data, etc, etc. 例如:链接到RETS,查询所有数据,等等,等等。

Thanks! 谢谢!

Helpful Tips RETS Data Downloading 有用的提示RETS数据下载

-Intial setup You need to download Full data With Photo and XML Download -Daily based Download Update Only. -Intial设置您需要使用照片和XML下载来下载完整数据-仅基于每日的下载更新。 Make sure you only download updates. 确保仅下载更新。 Query the RETS server for records that have been updated (PROP_LAST_UPDATEDATE=2-2-2012T00:00+) and Same Download Photo Download Query 在RETS服务器上查询已更新的记录(PROP_LAST_UPDATEDATE = 2-2-2012T00:00+)和相同的下载照片下载查询

-Try to implement Keeplist concept and Update status and Data -尝试实施Keeplist概念并更新状态和数据

Not sure if you're downloading images, but keep the amount per listing to an absolute minimum. 不确定是否要下载图像,但请确保每个列表的数量绝对最小。

I can offer a few small tips: 我可以提供一些小技巧:

  • Make sure you only download updates. 确保仅下载更新。 Query the RETS server for records that have been updated between the highest last update time in your local database and the current time. 查询RETS服务器以获取在本地数据库中最近的最高更新时间与当前时间之间已更新的记录。 (edit: I see in your comment that you are doing this) (编辑:我在您的评论中看到您正在执行此操作)

  • Don't pull data you aren't going to use. 不要提取不使用的数据。 If you aren't using properties with "Closed" status for instance, make sure you don't include them in your queries. 例如,如果您不使用状态为“已关闭”的属性,请确保不将其包括在查询中。 Try to filter out every possible criteria you won't be using. 尝试过滤掉您将不使用的所有可能标准。

  • Not sure if you're downloading images, but keep the amount per listing to an absolute minimum. 不确定是否要下载图像,但请确保每个列表的数量绝对最小。

  • I'm pretty sure you can reduce the download frequency to every 48 hours. 我很确定您可以将下载频率减少到每48小时一次。 At least, that was what we were required to do with our local RETS provider. 至少,这就是我们与本地RETS提供商所必须做的。

Useful tips: 有用的提示:

  1. Make Sure that required Field should be downloaded 确保应下载必填字段
  2. Make sure you only download updates. 确保仅下载更新。 Query the RETS server 查询RETS服务器
  3. If Have only Specific status Data Then Filter ie Active,Contigient) 如果仅具有特定状态数据,则过滤(即活动,连续)
  4. If MLS Support 3rd party URL then don't download Images as GetObject in PHRTES 如果MLS支持第三方URL,则不要在PHRTES中将图像下载为GetObject

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM