Beginner Questions... Options
kyongwon
Posted: Tuesday, September 26, 2006 2:58:40 AM
Rank: Newbie

Joined: 9/26/2006
Posts: 8
Hi i'm new to umbraco ( a few days of looking at it.. ) and some things i want to clear up.. sorry to bunch all these questions!

Media -
is it just a link to the /media section of the file system..
if so, what happens in a web farm?
are these PERMANENT links/paths? (e.g. /media/374/myFile.jpeg )
element type: Upload seem to not update the Media section except when uploading from media section (e.g. Sample Package: Frontpage doc type's headerImage )

Best Practice -
similar to news/ news items combo, i need to do that with media files..
i do need to add some metadata in addition to the file such as author, create date, etc..
should i..
(a) create a new media type or document type? ( i think media type makes more sense )
(b) if media type, then create a summary that will somehow retrieve the nodes in media/uploaded section?
so.. Media -> DirectoryToHoldFileInfo -> File1, File2, File3, etc..
(c) if a doc type, then create nodes below a list page ( like news template )?
(d) or some other custom solution? maybe a .net user control?

Performance -
I read that v3 will be 20x faster.. which makes me ask.. how does v2 perform?
i'm not expecting too many hits.. but what type of cpu/bandwidth/memory/disk space/etc..
would be required? i'm expect five people accessing the admin section and about 70-100 people online at peak times..
not much.. so just wanted some basic specs..

Debugging -
is there a quick way of debugging an xslt change?
i don't know what xml i would run it against since much of it is at runtime..

thanks guys! =)
kyongwon
Posted: Tuesday, September 26, 2006 3:02:56 AM
Rank: Newbie

Joined: 9/26/2006
Posts: 8
What happened to the spacing? hope this works.. otherwise.. it'll look mighty silly.. :blush:

Media -
is it just a link to the /media section of the file system..
if so, what happens in a web farm?
are these PERMANENT links/paths? (e.g. /media/374/myFile.jpeg )
element type: Upload seem to not update the Media section except when uploading from media section
(e.g. Sample Package: Frontpage doc type's headerImage )


Best Practice -
similar to news/ news items combo, i need to do that with media files..
i do need to add some metadata in addition to the file such as author, create date, etc..
should i..
(a) create a new media type or document type? ( i think media type makes more sense )
(b) if media type, then create a summary that will somehow retrieve the nodes in media/uploaded section?
so.. Media -> DirectoryToHoldFileInfo -> File1, File2, File3, etc..
(c) if a doc type, then create nodes below a list page ( like news template )?
(d) or some other custom solution? maybe a .net user control?


Performance -
I read that v3 will be 20x faster.. which makes me ask.. how does v2 perform?
i'm not expecting too many hits.. but what type of cpu/bandwidth/memory/disk space/etc..
would be required? i'm expect five people accessing the admin section and about 70-100 people online at peak times..
not much.. so just wanted some basic specs..

Debugging -
is there a quick way of debugging an xslt change?
drobar
Posted: Tuesday, September 26, 2006 7:27:44 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,410
Location: KY, USA
Answering a few of your questions...

Quote:
Performance -
I read that v3 will be 20x faster.. which makes me ask.. how does v2 perform?
i'm not expecting too many hits.. but what type of cpu/bandwidth/memory/disk space/etc..
would be required? i'm expect five people accessing the admin section and about 70-100 people online at peak times..
not much.. so just wanted some basic specs..

I've never found performance to be an issue with Umbraco on any of my sites, and have never heard of any performance issues from anyone else. One golfing site has more than 60,000 pages and performs very well. (see http://rtk-cv.dk/1050.aspx for a description)

Obviously, faster CPU, more RAM, and bigger internet pipes all help, as they do with any site. My own experience is that a 1,000 page site is very responsive, even on older hardware or in shared environments with newer hardware.

My development server, for instance, is an old Dell PowerEdge 6400 with four 700MHz P3 cpus and 2GB ram. I run all kinds of stuff on that machine (sqlserver, iis, disk shares, active directory, you name it) and umbraco web sites are just fine, taking no significant resources and being very responsive. The machine just idles along, even with a number of people logged in. If I had a very heavy user demand it might slow, but honestly, performance is not going to be a problem for you with any reasonable hardware.

Umbraco v3 *is* faster than 2.1, however. I noticed it in these forums when Niels switched over to a pre-beta version. The difference isn't one you have to have, it wasn't slow or sluggish before. But now the forums are even more responsive. Which means a server will be able to handle a higher number of visitors with v3 and v2.1.



Quote:
Debugging -
is there a quick way of debugging an xslt change?

No. This is a weakness of XSLT in general and not specific to Umbraco. I've seen a few development tools that let you add breakpoints, stepping in/out of templates and functions, as well as variable watching, but they are all rather expensive. So I do it like everyone else... trial and error. You get good at it after a while and these forums are a great place to find answers and get help.

Cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
neehouse
Posted: Tuesday, September 26, 2006 8:16:40 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,068
Location: Charleston, West Virginia, United States
kyongwon wrote:

Media -
is it just a link to the /media section of the file system..
if so, what happens in a web farm?
are these PERMANENT links/paths? (e.g. /media/374/myFile.jpeg )
element type: Upload seem to not update the Media section except when uploading from media section
(e.g. Sample Package: Frontpage doc type's headerImage )


Best Practice -
similar to news/ news items combo, i need to do that with media files..
i do need to add some metadata in addition to the file such as author, create date, etc..
should i..
(a) create a new media type or document type? ( i think media type makes more sense )
(b) if media type, then create a summary that will somehow retrieve the nodes in media/uploaded section?
so.. Media -> DirectoryToHoldFileInfo -> File1, File2, File3, etc..
(c) if a doc type, then create nodes below a list page ( like news template )?
(d) or some other custom solution? maybe a .net user control?


kyongwon,

umbraco is set up to synchonise data between servers in a web farm, but I think that media will have to be synchronised outside of umbraco toolset at the moment. I am sure you should be able to find a file system watcher tool that will copy modified files between servers as things are changed. I will point out that synchronization of the file-system can sometimes be painful. You may be able to write an action handler that hooks into the save/publish routine and would copy the content between fileshares, ftp, etc. However, at the moment, I do not know of anyone doing this.

In regards to best practices with content, opinions vary. I like to create a document type with an upload field that holds all of the data for a node in the content section. To me, this simplifies the process greatly. You would need to customize your XSLT/templates to output the file path instead of the node path in the case of pointing to your file, or you can use a redirect tool in the template to simplify things even further (which has opinions out there as well). So, I would recommend (c) myself.

I am personally still getting a load-balanced solution implemented myself, and will report on my experiences once I get it up and going.

Hope this helps
Case

• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
kyongwon
Posted: Wednesday, September 27, 2006 12:51:51 AM
Rank: Newbie

Joined: 9/26/2006
Posts: 8
Doug & Casey..

like the tagteam action! :thumbup:
thanks for the answers..

i'm sure i'll be posting lots of questions for awhile.. :blush: but hopefully in a few weeks, i'll be answering questions!! :cool:
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.