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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:58:18+00:00 2026-06-13T03:58:18+00:00

I have ~280,000 files that will need to be searched through, and the proper

  • 0

I have ~280,000 files that will need to be searched through, and the proper file returned and opened. The file names are exact matches of the expected search terms.

The search terms will be taken by an input box using PHP. What is the best way to accomplish this so that searches do not take a large amount of time?

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-13T03:58:20+00:00Added an answer on June 13, 2026 at 3:58 am

    I suspect the file system itself will struggle with 280,000 files in one directory.

    An approach I’ve taken in the past is to put those files in subdirectories based upon the initial letters of the filename e.g.

    1/100000.txt
    1/100001.txt
    ...
    9/900000.txt
    

    etc. You can subdivide further using the second letter etc.

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

Sidebar

Related Questions

I have a huge word list of over 280.000+ words that is loaded from
I have 280,000 rows that contain a column called body . This column has
I need to import more than 280 000 records to mysql (sqlite also fine).
I have 16,000 jpg's from a webcan screeb grabber that I let run for
I have a list of objects (created from several text files) in C#.net that
I have an applet, which I was writing in Java. Recently, I thought that
I have a swf that just contains library assets, no code. It's loaded by
I have a simple video player <video id=video src=http://xyx.com/zzz.m3u8 controls=controls width=480 height=280></video> I like
I have a UITableView that loads content into a UIWebView like this: //MainViewController.m -
I have a file which is space delimited which looks like this: probeset_id submitted_id

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.