Sniper
Active member
Out of interest; did you guys consider writing an active record like system or perhaps use an existing one or have plans to use/create on in the future.
No it does not! It simply provides an object-oriented interface to database tables, so not even close to AR patterm. I recommend you actually read the above wiki or do a bit more research.
If XF ever does, it will greatly reduce the amount of repeated code, even the Zend framework doesn't support the AR pattern.
Please backup your statement, no point in making a rather bold statement...To my knowledge no forum software uses AR or has even tried it, so theres nothing to look at there. No point going with what everyone else says, I'm sure you've heard Ruby on Rails can't scale, well Twitter could handle 1 Billion+ queries per day using RoR. More than anything its down to architecture rather the AR.Active Record has a terrible reputation for being unable to scale.
Please backup your statement, no point in making a rather bold statement...
To my knowledge no forum software uses AR or has even tried it, so theres nothing to look at there.
Twitter is hardly a good example, as the program is relativly simple. Successful yes, but its still relativly simple software.No point going with what everyone else says, I'm sure you've heard Ruby on Rails can't scale, well Twitter could handle 1 Billion+ queries per day using RoR. More than anything its down to architecture rather the AR.
@Mike 1:1 qureies don't have to be separate queries with AR, nor do you have to force them, have you heard of the concept behind "scopes"?
More than anything, in my opinion; it would make it easier for the add-on community.
Did you guys look at the Yii framwork? It claims to be faster than Zend and others, though thats not the reason I use it, its mainly down to how similar it is to RoR.
Please backup your statement, no point in making a rather bold statement...To my knowledge no forum software uses AR or has even tried it, so theres nothing to look at there. No point going with what everyone else says, I'm sure you've heard Ruby on Rails can't scale, well Twitter could handle 1 Billion+ queries per day using RoR. More than anything its down to architecture rather the AR.
You guys have plenty to learn! No architecture/language guarantees scaleability. You have to pick the right tools for the task at hand! even then you might have to make changes. AR is simply one tool, which helps development.
I'm sorry Sniper and ibnesayeed, but I'm am thoroughly confused. I see you guys talking about Ruby on Rails... Correct me if I'm wrong, but XenForo isn't written in Ruby on Rails... So how does any type of "ActiveRecord" improvements on their end make it any better for us. Its an invalid argument when you are talking about implementing it into a PHP based software. No matter HOW you try to spin it.
We use essential cookies to make this site work, and optional cookies to enhance your experience.