Jump to content

Storing info in a database vs. creating a txt file [Facebook related]


ev0

Recommended Posts

Okay, I'll make this short and sweet, and all side comments are irrelevant.  I'm doing this for my own happies :)

 

 

So using Facebook.com's API you can extract all of a specific user's friends in an array.  Well I'm making a array check to see who on that users friend list was removed or deleted them that week using array_dif(); in this method:

 

1) User allows the application

2) Application catches the user's friends_id's in an array and stores them // this is where i'm having trouble, i'll come back to it

3) User then waits a few days and notices their friend count is no longer 400, it's now 399!

4) User logs into my application, and checks the previously uploaded array against their current array of friends.

 

Okay now to the part i'm struggling with is, what would you do?  Should i store them each uniquely in a database? Because some users have 4,000+ friends and that gets quite strenuous.  OR! Should i save them into a txt file unique to that person's user_id.

 

I kind of like the 2nd option, however it's less ( to my newbish mind ) customizable versus the sql_queries. 

 

Once again, i'd like to reiterate, i don't care that this is again Facebooks terms of service, it's for my own personal gain and just enjoy taking on projects in my spare time that force my brain to work hard.

 

That's all, hope you excuse the typos and poor grammar.  Typed this pretty quickly, any questions - feel free to ask!

Database. Do you really want to have potentially millions of text files?

 

Once again, i'd like to reiterate, i don't care that this is again Facebooks terms of service, it's for my own personal gain and just enjoy taking on projects in my spare time that force my brain to work hard.

Doesn't matter that it's for your own use. It's against the ToS. Anything beyond the mental exercise is prohibited.

Database. Do you really want to have potentially millions of text files?

 

Once again, i'd like to reiterate, i don't care that this is again Facebooks terms of service, it's for my own personal gain and just enjoy taking on projects in my spare time that force my brain to work hard.

Doesn't matter that it's for your own use. It's against the ToS. Anything beyond the mental exercise is prohibited.

 

Okay, regardless if it's for facebook and against terms of service.  Say I have a number array of 5 users and 4,000 numbers associated.  Take that into account, and this no longer is a mental exercise but a question in which i'm struggling with.

 

But thank you for your answer.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.