I thought I replied via an reply through Gmail but apparently not, sorry about that:
It’s aggregetting the projects.json which has a json file that looks like the first JSON snippet below.
While admittedly not using :pluck
or cache
declerations like I normally do when something production-ready, it’s odd how inconsistent it is.
I’m inexperienced of what the free experience of Heroku App is, so could it be possible that’s the reason? I haven’t been able to reproduce the problem in any mode of rails server
to explain the inconsistent time out errors.
The second code block shows what individual project pages get from the server which is more taxing technically as it gets things from the persona
, goal
interest
, technology
, technology_profile
models, 2 of which are polymorphic.
projects: [
{
id: 2,
title: "Campus Connect",
description: "<p>A project in hopes of making Campus Life more accessible for all. </p> ",
medium: "Website",
state: "approved",
created_at: "2013-10-07T23:56:33.542Z",
updated_at: "2013-10-20T01:02:49.640Z",
slug: "campus-connect",
background_image_file_name: "Mock_up_Page_1.png",
background_image_content_type: "image/png",
background_image_file_size: 0,
background_image_updated_at: "2013-10-08T22:19:59.607Z",
experiment: true,
released_on: "2012-01-07",
url: "",
missing_url_reason: "Have to hard drive hunt for the prototypes. ",
main_image_file_name: "campus_connect_cover.png",
main_image_content_type: "image/png",
main_image_file_size: 0,
main_image_updated_at: "2013-10-08T22:20:08.266Z",
lock_version: 31,
personas_count: 2,
byline: ""
},
{
id: 1,
title: "Special Project",
description: "<p>It’s a special project for me and only me. </p> ",
medium: "Website",
state: "approved",
created_at: "2013-10-03T18:10:18.454Z",
updated_at: "2013-10-20T02:00:30.356Z",
slug: "special-project",
background_image_file_name: "3e9ccb998abbe9190af0c7f916422e91_133_76_Angela-Rypien-Facebook.jpg",
background_image_content_type: "image/jpeg",
background_image_file_size: 3049,
background_image_updated_at: "2013-10-18T21:36:26.569Z",
experiment: true,
released_on: "2013-10-31",
url: "http://ign.com",
missing_url_reason: "http://ign.com",
main_image_file_name: "original_attack_on_titan.jpg",
main_image_content_type: "image/jpeg",
main_image_file_size: 356354,
main_image_updated_at: "2013-10-18T21:36:25.706Z",
lock_version: 20,
personas_count: 1,
byline: "Special"
}
]
}
{
project: {
id: 2,
main_image: "http://kevin-lozandier-personal-website.s3.amazonaws.com/projects/main_images/000/000/002/original/campus_connect_cover.png?1381270808",
medium: "Website",
technology_profiles: [
{
id: 3,
name: "Sass ",
color: "#d0146c",
percentage_of_project: 5
},
{
id: 4,
name: "HAML",
color: "#e45e0c",
percentage_of_project: 20
},
{
id: 10,
name: "HTML5",
color: "#000000",
percentage_of_project: 75
}
],
personas: [
{
id: 3,
interest_ids: [ ],
influencer_ids: [
10,
9
],
goal_ids: [ ]
},
{
id: 2,
interest_ids: [
1,
2,
3
],
influencer_ids: [
4,
5,
6,
7,
8
],
goal_ids: [
1,
2,
3,
4,
5
]
}
],
photos: [
{
id: 6,
caption: "New Photo ",
image_url: "http://kevin-lozandier-personal-website.s3.amazonaws.com/photos/images/000/000/006/original/IMG_4419.JPG?1382137086"
},
{
id: 5,
caption: "AA",
image_url: "http://kevin-lozandier-personal-website.s3.amazonaws.com/photos/images/000/000/005/original/blackalumniassociation.png?1382134728"
},
{
id: 4,
caption: "AA",
image_url: "http://kevin-lozandier-personal-website.s3.amazonaws.com/photos/images/000/000/004/original/persona03.jpg?1382063158"
}
]
}
}