Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8892707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:04:28+00:00 2026-06-14T23:04:28+00:00

Im experimenting with some RSS reader/fetcher im writing at the moment. Everything is going

  • 0

Im experimenting with some RSS reader/fetcher im writing at the moment. Everything is going smoothly except 1 thing. It’s terribly slow.

Let me explain:

  1. I fetch the list of RSS feeds from the database
  2. I iterate every feed from this list, open it with cURL and parse it with SimpleXMLElement
  3. I check descriptions and title’s of these feeds with a given keyword, to see if its already in database or not.
  4. If its not i add it to database.

For now i am looping through 11 feeds. Which gives me a page loading time of 18 seconds. This is without updating the database. When there are some new articles found, it goes up to 22 seconds (on localhost).

On a live webserver, my guess is that this will be even slower, and maybe goes beyond the limit php is setup to.

So my question is, what are your suggestions to improve speed.. and if this is not possible, whats the best way to break this down into multiples executions, like say 2 feeds at a time? I’d like to keep it all automated, dont want to click after every 2 feeds.

Hope you guys have some good suggestions for me!

If you want some code example let me know and ill paste some

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:04:29+00:00Added an answer on June 14, 2026 at 11:04 pm

    I would suggest you use a cronjob or a daemon that automatically synchronizes the feeds with your database by running a php script. That would remove the delay from the user’s perspective. Run it like every hour or whatever suits you.

    Though first, you should possibly try and figure out which parts of the process are actually slow. Without the code it’s hard to tell what could be wrong.

    Possible issues could be:

    • The remote servers(which store the feeds) are slow
    • Your local server’s internet connection
    • Your server’s hardware
    • And obviously the code
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm doing some experimenting with PHP/Apache. Let's say I have this code. <div>DIV
I'm doing some experimenting with AJAX in CakePHP and it seems to work except
I have been experimenting some problems with the fully distributed version. First of all
I'm currently experimenting with some RESTful JAX and I want to validate a custom
I'm doing some experimenting with HttpWebRequest, and need to get it working with SSL.
I'm doing some experimenting with this malicious JavaScript line: var undefined = true; Every
I am currently working through Michael Hartl's Rails Tutorial while experimenting with some other
I was experimenting with toCharArray() and found some strange behavior. Suppose private static final
While experimenting with pixel shaders in WPF I decided to draw some pixels onto
I have recently started experimenting with Django for some web applications in my spare

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.