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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:36:43+00:00 2026-06-10T05:36:43+00:00

As you can see from here ( https://dev.twitter.com/docs/api/1/get/statuses/home_timeline ), one tweet has a lot

  • 0

As you can see from here (https://dev.twitter.com/docs/api/1/get/statuses/home_timeline), one tweet has a lot of informations(fields)so that it isn’t easy to store tweet information in MySQL.

If I make this JSON into array, It wouldn’t be 1-depth array. For instance, like URL entities in this JSON, It might have lots of URLs in one “entities” field.

Should I store this information as a just string like “urls[{“aa”: a, “bb”: b}, {“aa”: c, “bb”: d}]” in one field? or Is there any best way to store?

{
    "coordinates": null,
    "favorited": false,
    "created_at": "Fri Jul 16 16:58:46 +0000 2010",
    "truncated": false,
    "entities": {
      "urls": [
        {
          "expanded_url": null,
          "url": "http://www.flickr.com/photos/cindyli/4799054041/",
          "indices": [
            75,
            123
          ]
        }
      ],
      "hashtags": [

      ],
      "user_mentions": [
        {
          "name": "Stephanie",
          "id": 15473839,
          "indices": [
            27,
            39
          ],
          "screen_name": "craftybeans"
        }
      ]
    },
    "text": "got a lovely surprise from @craftybeans. She sent me the best tshirt ever. http://www.flickr.com/photos/cindyli/4799054041/ ::giggles::",
    "annotations": null,
    "contributors": null,
    "id": 18700887835,
    "geo": null,
    "in_reply_to_user_id": null,
    "place": null,
    "in_reply_to_screen_name": null,
    "user": {
      "name": "cindy li",
      "profile_sidebar_border_color": "AD0066",
      "profile_background_tile": false,
      "profile_sidebar_fill_color": "AD0066",
      "created_at": "Wed Nov 29 06:08:08 +0000 2006",
      "profile_image_url": "http://a1.twimg.com/profile_images/553508996/43082001_N00_normal.jpg",
      "location": "San Francisco, CA",
      "profile_link_color": "FF8500",
      "follow_request_sent": false,
      "url": "http://www.cindyli.com",
      "favourites_count": 465,
      "contributors_enabled": false,
      "utc_offset": -28800,
      "id": 29733,
      "profile_use_background_image": true,
      "profile_text_color": "000000",
      "protected": false,
      "followers_count": 3395,
      "lang": "en",
      "notifications": true,
      "time_zone": "Pacific Time (US & Canada)",
      "verified": false,
      "profile_background_color": "cfe8f6",
      "geo_enabled": true,
      "description": "Just me, Cindy Li.Giving cute substance since 1997.\r\nMarried to @themattharris.\r\nProduct designer for Yahoo! ",
      "friends_count": 542,
      "statuses_count": 4847,
      "profile_background_image_url": "http://a3.twimg.com/profile_background_images/3368753/twitter_flowerbig.gif",
      "following": true,
      "screen_name": "cindyli"
    },
    "source": "web",
    "in_reply_to_status_id": null
},
  • 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-10T05:36:44+00:00Added an answer on June 10, 2026 at 5:36 am

    Store it in columns. Then you can place indexes on things that you want to find quickly – not the mention just being able to search through it all. Searching for something specific in the format you suggest would be a nightmare.

    If you want to keep using bits from it, write an object that will handle the database aspect of it, or at the very least a function that will pop them in or get them out. It might seem more work now, but in the long run it will save you much more effort later on.

    Edit: Yes, I would keep each bit of data in a column of it’s own. Having said that, you might not need to store every single bit of info. If you don’t want to keep info on “user Mentions” for example, just skip it totally.

    Edit 2L to put this into perspective, lets say you want to do a search for “Bob”. If you have a column structure like this:

    +------+-----------+-----------+-----+
    | user | favorited | truncated | url |
    +------+-----------+-----------+-----+
    | Bob  | true      | false     | ... |
    | Sue  | true      | true      | ... |
    | Tom  | true      | false     | ... |
    +------+-----------+-----------+-----+
    

    You can just write a dead simple query.

    vs something like this:

    +--------------------------------------------------------------+
    | tweetData                                                    |
    +--------------------------------------------------------------+
    | user:Bob;favorited:true;truncated:false;url:www.example.com  |
    | user:Sue;favorited:true;truncated:true;url:www.example2.com  |
    | user:Tom;favorited:true;truncated:false;url:www.example2.com |
    +--------------------------------------------------------------+
    

    Imagine trying to find how many times Bob was favorited. You would have to extract the entire row each time, do some manipulation/regex/trickery to get the field, then tally it up manually.

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

Sidebar

Related Questions

See the jsfiddle here: http://jsfiddle.net/x7N66/3/ See the screenshot here: https://i.stack.imgur.com/dC9Gp.png Note the white band
Update Aug 2015: Pinterest provides it here now https://dev.pinterest.com/ Is there official or unofficial
As you can see from the documentation the way to start an Activity to
As you can see from the Client class, if the while breaks then the
I have a setup a SQL Server instance that I can see from all
I have some really funky code. As you can see from the code below
I have a web page where users can see data from MongoDB on a
From what I can see ui:dialog isnt a standard psuedo css element, so I
Hi below link from Vaadin you can see how to set checkboxes on tabletree,
How can I remove the animation from this jQuery modal window? You can see

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.