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

  • Home
  • SEARCH
  • 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 8300699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:39:23+00:00 2026-06-08T16:39:23+00:00

I am developing a website which I believe will grow exponentially. Being very simplistic

  • 0

I am developing a website which I believe will grow exponentially.

Being very simplistic one needs to consider bandwidth usage and speed when developing a website. I am concerned because I have little experience in this area, and so although I know the website can handle ten simultaneous users I dont know if it can handle 100 or even 1000.

I’d rather prevent the problem as opposed to cure it if it happens so was looking for any advice/information on the subject/answers to the following specific queries.

If I have a products table, with a categories column. I then search the products table for all items with the category ‘FOOD’ – is this preferable to having a categories table with a column containing the IDs of the products which are contained within?

With Codeigniter what are the cons of calling other models from a model?

With javascript(using jquery) I want to have an auto refreshing div which contains notifications (from a db table). As far as I can tell there is no way to do this other than to do exactly that – reload the div every x seconds.. with 1000 users, reloading a div every 10 seconds I can see things getting very resource intensive. Surely facebook etc must do something like this..? How does one achieve this effectively?

Many Thanks
Thomas

  • 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-08T16:39:24+00:00Added an answer on June 8, 2026 at 4:39 pm

    If I have a products table, with a categories column. I then search
    the products table for all items with the category ‘FOOD’ – is this
    preferable to having a categories table with a column containing the
    IDs of the products which are contained within?

    It depends on your indexing on the table. If you know the id associated to food and you dont have to lookup that information then integer is faster IIRC.

    With Codeigniter what are the cons of calling other models from a model?
    your code could get messy, and its not really ideal.. why would you need to do this?

    With javascript(using jquery) I want to have an auto refreshing div
    which contains notifications (from a db table). As far as I can tell
    there is no way to do this other than to do exactly that – reload the
    div every x seconds.. with 1000 users, reloading a div every 10
    seconds I can see things getting very resource intensive. Surely
    facebook etc must do something like this..? How does one achieve this
    effectively?

    There are several ways to go about this, one is to use sockets and push the notifications to the users.. see http://pusher.com

    There is also the ability to use jQuery and $.ajax on a timer to refresh every x seconds to a controller/action through CI… e.g;

    $.ajax({
      //controller/method/limit
      url: "/notifications/get/10",
      success( function(d){
        //d is a json_encoded object returned back from the controller
      }
    });
    

    and lastly you could load all of the notifications on pageload, and display them one at a time every x seconds.

    The first and last options are probably the least resource intensive.

    The first because you are only querying and pushing when changes occur. The second because youre only loading the notifications once per pageload, instead of every x seconds no matter what.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a website which will allow users to pay via Paypal. Paypal
I'm developing some website which is a kind of online workplace, there will be
I'm currently developing a website which will have heavy load, and a certain amount
I am developing a website which needs to contain functionality in which the user
Im at the moment developing a very heavy website which i need to optimize
I m developing website. i want call one ashx file which return all process
I'm developing a website which will be used in the corporate intranet which uses
I'm developing a website which to begin with will have three clear sub sites:
we are currently developing a website which will heavily involve connections to several social
I am developing a website which needs to support multiple langauges. I know that

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.