Quote from: OpenGeek at Nov 11, 2010, 01:59 PM
That is exactly what disabling the cache_context setting does.
Is this thing on?
My apologies; did not mean for that to come across like it did. I am a bit frustrated over the topic, which I’ve been discussing for years in these forums, in regards to both Evolution and Revolution code. But no excuse to be an ass.
Let’s get back to the details...
Quote from: bakalek at Nov 11, 2010, 02:35 PM
I’ve been using MODx for years already and its very surprising to hear things like:
Again, the point everyone is missing is that Resources are not exactly equal to the data it is you are presenting in a 1 to 1 relationship. It is a distinct view of data that is alike.
Thats the whole point to use resources as the data points. Yes, i will create a folder and have a ditto or getresources snippet on it to display last 100 blog posts, but those 100 posts need to live somewhere, dont they?
Do you create 2000 or 10,000 Resources, one for each article or recipe, or whatever? No. You create various views of those pieces of data. Those views are Resources.
- Is this how you manage your MODx site? All articles in a completely separate DB table(s) (entered directly into MySQL or through custom admin pages) and MODx resources used only for distinct views? If yes, i think i have a major misconception about MODx in general (and probably not only me).
I guess I’m surprised as well; I’ve discussed this exact topic and held the same stance for years. If you have 1000’s of anything, creating MODx Resources is simply not the most efficient way to handle presentation of that data. And if you want to reuse that data in other views, think of how complicated and memory intensive it will be to load a whole Resource and worry about applying different formatting, etc. I’ve tried to make this a key point when talking about Resource limits and caching and scalability, but I’ve not yet been able to make it as important an issue as it should be. There is a difference between raw content (what I call data), and content that is prepared for presentation, be it in HTML, XML, JSON, PDF, or any other format.
MODx is optimized for making Resources available at specific URLs, but the power of MODx IMO is being able to use a Resource as a view-controller, to present my content in a specific way for a specific purpose. If every piece of content you are managing is treated like this, and you have large quantities of this content, regardless of the ability to reuse the raw content without presentation layer overhead, every time you want to clear the cache because one thing in the presentation layer changes, or a Snippet changes, or whatever the case may be, you burden the entire system. If you isolate the raw content from your presentation layer, then you can isolate the caching of each as well. For example, you can change some markup being applied to your product database without clearing the cache of product data.
If the conception is that MODx is going to be able to handle, out of the box, without any customization or development, all site requirements with regards to content quantity and scalability when using Resources to represent all kinds of data, not just a few distinct web views, then I would love to destroy that right here and now.
Quote from: bakalek at Nov 11, 2010, 02:35 PM
the setting is off and the site is at the standstill - made it unusable.
Let’s explore how we can address this; but I’m afraid this working better is going to require some optimization on your side and on the part of the core. Being able to query the entire tree structure of a Context in a single query will improve this situation immensely, but that simply is not possible without some additional data structures that create their own overhead. These are not challenges we take lightly either; regardless of my insistance on separating raw content or data from your presentation layer, we absolutely want MODx to scale as much as possible, even if you create 20,000 Resources in a single Context.
I suggest we start by filing a bug report covering the situation so we can address this directly, and not in casual conversation in the forums. Is this something you are willing to do bakalek?
Quote from: bakalek at Nov 11, 2010, 02:35 PM
This thread is raising more and more questions for me.
I think that is a good thing. If you had 20,000 Resources in Evolution, these should have been an issue, even before now.