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

The Archive Base Latest Questions

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

Which way of storing large data would be more more effective for fast searches

  • 0

Which way of storing large data would be more more effective for fast searches and reporting usage ?

{ website: "google.com", 
  description: "google is a search engine", 
  vistits: [
    {date: 1334565455, referrer: "http://bing.com"}, 
    {date: 1334565455, referrer: "http://bing.com"},
    {date: 1334565455, referrer: "http://bing.com"},
    {date: 1134565455, referrer: "http://bing.com"},
    {date: 1334542455, referrer: "http://bing.com"},
    {date: 1334555455, referrer: "http://bing.com"},
    {date: 1334575455, referrer: "http://bing.com"},
    {date: 1324565455, referrer: "http://bing.com"},
    {date: 1334565455, referrer: "http://bing.com"},
]}

or use traditional way where visits will be stored in separate table with site id as reference ?

  • 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-13T04:03:58+00:00Added an answer on June 13, 2026 at 4:03 am

    It depends. If you have many visits from certain sites, those documents will grow really fast. Eventually, they will be too big to load.

    On the other hand, if your reporting tool always needs to load all visits, splitting them into several documents reduces performance.

    Try to balance the two goals. For example, if the array visits grows too big, create another document and save its document id as continuedIn. That way, you can limit the size of each document but still keep much information together.

    You can also try to group visits by day (i.e. one document contains all visits on a certain day) if your reporting tool aggregates by day anyway. That way, documents could grow but they won’t grow forever – only for a single day.

    Lastly, you could stop recording after N visits (say 100’000). What’s the point to know whether you had 100001 or 100015 visits?

    Note: Depending on your location, recording IP addresses and referrer information over a longer period of time is only legal if you have the written permission of each visitor. And even when it’s legal in your country, some visitors are sensitive to sites which track them. Sure, they can’t do much about it. Except stopping visiting you, configuring their web browser to stop talking to your server or post negative comments in blogs and forums.

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

Sidebar

Related Questions

Which way is better for removing float decimals places or is there a more
I am wondering which way would end up being faster, selecting elements by: $('element[href=#my_link]');
I'm really interested which way you guys use to effectivly debug a large (let's
I'm currently making decison what way of storing data, created and used by my
We have data files which are encrypted in our wpf app. We would like
I im developing a application in which I continuously download large amount of data.
Given a variable which holds a string is there a quick way to cast
What's the easiest way to convert a C++ std::string to another std::string, which has
In which way could I call the function that automatically opens my annotation (with
I was wondering which way is better to work with. Using private attributes at

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.