![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
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.
__________________
★★★
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: May 2005
Location: EU - Czech republic
Posts: 3,025
|
1) Save data in your MySQL
2) Cache your xml file |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
1) You have got to be kidding.
2) You need more experience; If I were you, I'd start reading up on database design.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Data needs to be portable across different platforms + apps (online and off)
__________________
★★★
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Quote:
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.
__________________
★★★
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Thanks this is the way I think I'm gonna go. Though I'm reading up on some opensource XML databases.
__________________
★★★
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
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.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Quote:
![]() So I take it you were just born with the ability to design databases? You didn't learn right? God you are fucking moronic.
__________________
★★★
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2007
Location: 418194907
Posts: 3,134
|
Pipe delimited text files. That's the way to go
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
Really?!?!? AWESOME! Starting on it now.
__________________
★★★
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Bland for life
Industry Role:
Join Date: Nov 2004
Posts: 10,468
|
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.
__________________
★★★
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
Fuck you too, skittle-popping nancy boy.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
You're the idiot who thought they were M&Ms
![]() ![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
All I know I saw you taking them out of Brandon's He-Man lunchbox.
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
|
Use your database and user other sites XML feeds.
only use xml from your DB if your providing for widgets or API's
__________________
ICQ:268731675 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 |
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
rss2xml.php3
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
Join Date: May 2005
Posts: 2,737
|
You're silly.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 | |
Confirmed User
Join Date: Jun 2003
Posts: 1,444
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Join Date: Apr 2004
Location: Toronto, ON
Posts: 1,706
|
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.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |