GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Any developers up? Questions about XML (https://gfy.com/showthread.php?t=841660)

Young 07-15-2008 09:13 PM

Any developers up? Questions about XML
 
Working on a project. It will have about 1,500-2,000 separate entries with about 10 fields per entry. There won't be a huge amount of queries at first but scalability is a concern for the future. XML is a necessity.

1. Should I go with an XML file or a Database?
1a. Straight XML or MySql with XML export?
2. Anyone want to give me any advice or pointers on the way that you would do it.

ilbb 07-16-2008 01:12 AM

1) Save data in your MySQL
2) Cache your xml file

GrouchyAdmin 07-16-2008 01:41 AM

1) You have got to be kidding.
2) You need more experience; If I were you, I'd start reading up on database design.

brandonstills 07-16-2008 03:18 AM

Need more information before we can give you a suggestion. The nature of the data sounds like it's tabular in nature. Why is XML required? Data are data.

Young 07-16-2008 02:27 PM

Quote:

Originally Posted by brandonstills (Post 14465554)
Need more information before we can give you a suggestion. The nature of the data sounds like it's tabular in nature. Why is XML required? Data are data.

Data needs to be portable across different platforms + apps (online and off)

Young 07-16-2008 02:28 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14465460)
1) You have got to be kidding.
2) You need more experience; If I were you, I'd start reading up on database design.


1. No I'm not kidding.

2. You have no clue how much experience I have with MySQL. I don't know much about XML. I am still learning.

3. You didn't answer my question. You contributed zero. So why waste your time? You'll never get those 2 minutes of your life back.

Young 07-16-2008 02:29 PM

Quote:

Originally Posted by ilbb (Post 14465413)
1) Save data in your MySQL
2) Cache your xml file

Thanks this is the way I think I'm gonna go. Though I'm reading up on some opensource XML databases.

GrouchyAdmin 07-16-2008 03:35 PM

Quote:

Originally Posted by Young (Post 14467854)
You contributed zero. So why waste your time? You'll never get those 2 minutes of your life back.

Neither will you manage to write a viable, useful application without knowing what the fuck you're doing, but don't let me stop you - I'll take the 'we need this rebuilt' job when you're gone.

mrkris 07-16-2008 03:39 PM

I would store the data in the database, then assuming you have an ORM approach, have a to_xml method that will convert the record object into xml.

Young 07-16-2008 03:39 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14468189)
Neither will you manage to write a viable, useful application without knowing what the fuck you're doing, but don't let me stop you - I'll take the 'we need this rebuilt' job when you're gone.

It's my app you dumb fuck. :1orglaugh

So I take it you were just born with the ability to design databases? You didn't learn right? God you are fucking moronic.

Sands 07-16-2008 03:43 PM

Pipe delimited text files. That's the way to go :winkwink:

Young 07-16-2008 03:45 PM

Quote:

Originally Posted by Sands (Post 14468227)
Pipe delimited text files. That's the way to go :winkwink:

Really?!?!? AWESOME! Starting on it now.

Young 07-16-2008 03:46 PM

Quote:

Originally Posted by mrkris (Post 14468208)
I would store the data in the database, then assuming you have an ORM approach, have a to_xml method that will convert the record object into xml.

This is the approach I think I'm going to take. Thanks. All I wanted to know. Instead I get a couple of responses from smart asses who need the work.

mrkris 07-16-2008 03:49 PM

Quote:

Originally Posted by Young (Post 14468215)
It's my app you dumb fuck. :1orglaugh

So I take it you were just born with the ability to design databases? You didn't learn right? God you are fucking moronic.

Although I can understand your frustrations, Grouchy is by far one of the most intelligent people on GFY when it comes to technology. Yes, a sarcastic dick face, but still intelligent.

GrouchyAdmin 07-16-2008 03:51 PM

Quote:

Originally Posted by mrkris (Post 14468269)
Although I can understand your frustrations, Grouchy is by far one of the most intelligent people on GFY when it comes to technology. Yes, a sarcastic dick face, but still intelligent.

Fuck you too, skittle-popping nancy boy.

mrkris 07-16-2008 03:52 PM

Quote:

Originally Posted by GrouchyAdmin (Post 14468273)
Fuck you too, skittle-popping nancy boy.

You're the idiot who thought they were M&Ms :1orglaugh:1orglaugh:1orglaugh

GrouchyAdmin 07-16-2008 03:53 PM

Quote:

Originally Posted by mrkris (Post 14468278)
You're the idiot who thought they were M&Ms :1orglaugh:1orglaugh:1orglaugh

All I know I saw you taking them out of Brandon's He-Man lunchbox.

Bird 07-16-2008 04:16 PM

Use your database and user other sites XML feeds.

only use xml from your DB if your providing for widgets or API's

GrouchyAdmin 07-16-2008 05:18 PM

rss2xml.php3

mrkris 07-16-2008 05:21 PM

Quote:

Originally Posted by Bird (Post 14468372)
Use your database and user other sites XML feeds.

only use xml from your DB if your providing for widgets or API's

You're silly.

jay23 07-16-2008 05:23 PM

Quote:

Originally Posted by Young (Post 14465013)
Working on a project. It will have about 1,500-2,000 separate entries with about 10 fields per entry. There won't be a huge amount of queries at first but scalability is a concern for the future. XML is a necessity.

1. Should I go with an XML file or a Database?
1a. Straight XML or MySql with XML export?
2. Anyone want to give me any advice or pointers on the way that you would do it.

These 10 Fields per entry, are they going to be same for all the entry or different.

1. If its same, go with any SQL data base
2. If its differnt then go with a XML data base (I personaly use MS SQL 2008 and its XML support)

Jay

Linguist 07-16-2008 10:13 PM

Quote:

Originally Posted by Young (Post 14467854)
1. No I'm not kidding.

2. You have no clue how much experience I have with MySQL. I don't know much about XML. I am still learning.

3. You didn't answer my question. You contributed zero. So why waste your time? You'll never get those 2 minutes of your life back.

Sorry mate but I totally agree with Grouchy here, and whether or not you use database or xml file depends purely on how you design the database. In this project a shitty database design will be about as fast or slower than the xml file.


All times are GMT -7. The time now is 02:32 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123