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 8188023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T02:45:47+00:00 2026-06-07T02:45:47+00:00

I have a large array at hand (2300 elements, 280 KB in total, 180

  • 0

I have a large array at hand (2300 elements, 280 KB in total, 180 KB in shortest form). I need to handle it either in PHP or JavaScript without loading the page or server too much. There is an autocomplete field in the page and I don’t want it to send request to a 180 KB page every time a user types in a letter (as it seems to be highly inefficient to me). I don’t want to store all that in the original page ‘coz it would slow the page down (wouldn’t it?).

I tried to push it into the Cookies, but it seems that there is no room for such huge array in the Cookies. Any suggestions? Perhaps searching within a database is better solution and I should store them in the database instead?

  • 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-07T02:45:49+00:00Added an answer on June 7, 2026 at 2:45 am

    You want to autocomplete with a list that you load only one ? Store it in a JavaScript file and set the proper cache headers so clients only load the list once.

    Do NOT set it as a cookie, that’s just nonsense.

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

Sidebar

Related Questions

I have a PHP file that contains a large array (about 90KB). I'm considering
I have a large array (say 512K elements), GPU resident, where only a small
I have a large array in PHP. It contains strings that are split into
I have a large array of numerical data that I need to sort, insert,
I have an array in my PHP application, and I need to develop a
Total newbie to R here (so far very pleased!). I have a large array(vector?)
I have a large array (a few hundred objects), and I need to separate
I have a large array called data. At the 10th array position i have
I have a large multidimensional array and I basically want to drop the first
Hey. I have a very large array and I want to find the Nth

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.