Jump to content

Max number of pages before switching to custom tables?


joer80
 Share

Recommended Posts

I am planning out a project that will contain a lot of data imported from a csv file, but each row will need its own page.  

I want to be able to use the api if I can and not go an extra custom table route.  My top level is going to be very small, just some of my categories may be large.

Is there a total number of pages that you can hit that makes adding custom tables for the data a better option than importing the content as new pages?

Thanks!

Link to comment
Share on other sites

My current project brought this question up, but I don't think it is going to be too bad, so I guess it's more of a hypothetical question so I know how to structure future projects!  

Maybe a newspaper would be a good example?  To move to a new cms, they would need to import pages by the hundreds of thousands I would imagine?

Link to comment
Share on other sites

Until recently, there has been a limit to the number of pages with images that PW can handle due to the OS per-directory file limit. However, the current development branch has changes in it that removes this previous limitation and effectively allows you to work to the full capacity of the file system. Previous limit was around 32,000 images on ext3 filesystems (if memory serves) but the dev changes blow that out of the water. Hundreds of thousands of images should now be possible but I have not verified this yet.

With regard to pages, MySQL is able to handle millions of rows in tables, so I think you should be fine as long as the queries don't try to pull a lot of rows (pagination is your friend) with a lot of fields in each row.

Edited to add: Beaten by diogo - again.  :-[

  • Like 3
Link to comment
Share on other sites

So taking the newspaper example, images would probably be stored in day folders.

domainname.com/content/uploads/pictures/2014/05/image.jpg

So you would never run into a directory limit because that would be a lot of photos in one day.

How does process wire do the default image save path?

(I think wordpress does a day based path based on the page upload date?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...