Oct 13, 2008, 02:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Ditto and thousands news?  (Read 2694 times)
0 Members and 1 Guest are viewing this topic.
konstantin
Jr. Member
*
Posts: 2


« on: Dec 03, 2006, 06:10 AM »

I have several category of news and each category have thousands news.

Can Ditto help me?
Logged
Andy Ayre
Sr. Member
****
Posts: 485


« Reply #1 on: Dec 06, 2006, 01:08 PM »

I think you might run into performance problems with that many documents. Probably a better approach would be to create a custom MySQL table, import your articles and then modify Ditto or write your own snippet to display them. Shouldn't be hard.

Andy
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #2 on: Dec 08, 2006, 09:05 PM »

Ditto 1.1b1 or later will work fine with this. Hopefully, by 1.1 performance will be even better.

You might consider paging the results to make it easier on the visitor--- and your db server.
Logged

Andy Ayre
Sr. Member
****
Posts: 485


« Reply #3 on: Dec 08, 2006, 09:07 PM »

Ditto will work fine with 1000s of documents or will work fine with a custom table?
I thought that MODx itself had performance problems above 5000 documents, so I was referring to that rather than any performance problems with Ditto.

Andy
Logged
Mark
Moderator
*
Posts: 3,247


Ditto Developer


WWW
« Reply #4 on: Dec 08, 2006, 09:25 PM »

Ditto will work with as many documents as MODx supports. So, if he has less than 5k he will be fine. If he has more than that, it is possible to modify Ditto to use an alternate table but it would require considerable changes to 2 core functions.
Logged

OpenGeek
MODx Co-Founder
Foundation
*
Posts: 4,857


looking a little more like my avatar again...


WWW
« Reply #5 on: Dec 08, 2006, 09:30 PM »

Ditto will work fine with 1000s of documents or will work fine with a custom table?
I thought that MODx itself had performance problems above 5000 documents, so I was referring to that rather than any performance problems with Ditto.
Andy, this has nothing specifically to do with Ditto actually, though I'm sure Ditto adds some additional overhead to the problem.  The real problem is the current approach to caching the entire site structure within a single cache file in MODx.  Sites with thousands of documents will have very large siteCache files which will tax the web server more by requiring more memory, more time to load the file from the filesystem, and more time to process it with the PHP interpreter.  In addition, thousands of pageCache files will also exist in a single directory, which can also increase resource loads for the web server when reading the cache directory contents searching for a cached file.  This reduces performance exponentially.

All of this is being addressed at the core level, and hopefully we'll have some additional scalability in this respect with the next minor release of MODx.   Wink
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual.
  — Frank Herbert
Andy Ayre
Sr. Member
****
Posts: 485


« Reply #6 on: Dec 08, 2006, 09:34 PM »

Yes, I understand, that's why I mentioned I was referring to MODx as the limitation, not Ditto. Cheesy There isn't much point trying to use Ditto with 5k+ documents if MODx can't handle it well.

Andy
Logged
mooreds
Jr. Member
*
Posts: 6


WWW
« Reply #7 on: Jan 02, 2007, 03:12 PM »

Ditto will work fine with 1000s of documents or will work fine with a custom table?
I thought that MODx itself had performance problems above 5000 documents, so I was referring to that rather than any performance problems with Ditto.
Andy, this has nothing specifically to do with Ditto actually, though I'm sure Ditto adds some additional overhead to the problem.  The real problem is the current approach to caching the entire site structure within a single cache file in MODx.  Sites with thousands of documents will have very large siteCache files which will tax the web server more by requiring more memory, more time to load the file from the filesystem, and more time to process it with the PHP interpreter.  In addition, thousands of pageCache files will also exist in a single directory, which can also increase resource loads for the web server when reading the cache directory contents searching for a cached file.  This reduces performance exponentially.

All of this is being addressed at the core level, and hopefully we'll have some additional scalability in this respect with the next minor release of MODx.   Wink

I'm curious--can you get around the 5K limit on total documents via turning off caching?

Thanks,
Dan
Logged
OpenGeek
MODx Co-Founder
Foundation
*
Posts: 4,857


looking a little more like my avatar again...


WWW
« Reply #8 on: Jan 02, 2007, 06:26 PM »

All of this is being addressed at the core level, and hopefully we'll have some additional scalability in this respect with the next minor release of MODx.   Wink

I'm curious--can you get around the 5K limit on total documents via turning off caching?

Thanks,
Dan
Not yet Dan; part of the bottleneck is a large index of document metadata that is loaded on all requests, which a large part of the current parsing engine is dependent on.  As I mentioned though, these issues are being addressed.
Logged

Jason Coward
MODx Co-Founder
xPDO Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual.
  — Frank Herbert
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!