impressions

How do I determine if I can delete some indexes from the impressions table

此生再无相见时 提交于 2019-12-24 09:04:08
问题 I'm using the impressionist gem for a Ruby on Rails based website. Our database is mysql. The impressions table is at about 2M records, which should pose no problem for MySql. The table size is 800M which is beginning to tax our servers. The data size of the table is 200M and the index size is 600M. Most of the indexes were predefined by the gem. Is there a way to figure out if any of these indexes are being used or can be deleted? 1,310,855,040 controlleraction_session_index 1,310,855,040

Rails Find_by_id raises exception

余生颓废 提交于 2019-12-24 02:25:08
问题 I was led to believe that the difference between Object.find and Object.find_by_id is that find will raise a RecordNotFound exception whereas find_by_id simply returns nil if nothing is found. However, in my Rails 3 app if I attempt to search my Uploads model with a bogus id I get: ActiveRecord::RecordNotFound in UploadsController#show Couldn't find Upload with id=59 Request Parameters: {"id"=>"59"} Here is the line of code thats messing up: @upload = Upload.find_by_id(params[:id]) I'm using

pass element ref to a method in angular2

巧了我就是萌 提交于 2019-12-22 01:51:20
问题 I have to check if an element in a list is within the viewport or not.For this i'm using the angular2 plugin angular-inviewport. What the plugin does is as soon as the card is withing the bottom of the window it return true.I want that the card should be in the center or at least somewhat near to the top of the window before i register the impression. For this i need the reference of the current element and compare it with the window height and Yoffset something like this(the last solution) .

How to implement third-party impressions tracking URL from Sizmek?

陌路散爱 提交于 2019-12-13 21:21:58
问题 I've received 2 third-party tracking links for an Expanding banner ad. One of them is for Click Tracking and another is for Imps tracking. I've never been requested to implement both, as the platform that we use (OAS) tracks Imps and Clicks. There is no field to insert Imps tracking link, and from my understanding I would need to create additional code to support third-party imps tracking. I've researched internet but can't find any useful information on this issue, aside that other people

What will happen with these Ads?

谁说胖子不能爱 提交于 2019-12-11 23:53:16
问题 If I add Ads apps to my application, but I don't actually monetize it in Admob, will I still get the money for the clicks? I released an app last month, and I realized now, that I didn't monetize it in the actual Admob website. The publisher ID and everything was properly put into my code, so it should still be linked to my Admob, right? So what does monetizing even do anyway? If I don't monetize, will I still get the money earned? Thanks, Ruchir 回答1: If I add Ads apps to my application, but

Tracking impressions/visits per web page

无人久伴 提交于 2019-12-11 03:53:07
问题 I have a site with several pages for each company and I want to show how their page is performing in terms of number of people coming to this profile. We have already made sure that bots are excluded. Currently, we are recording each hit in a DB with either insert (for the first request in a day to a profile) or update (for the following requests in a day to a profile). But, given that requests have gone from few thousands per days to tens of thousands per day, these inserts/updates are

pass element ref to a method in angular2

橙三吉。 提交于 2019-12-04 23:46:30
I have to check if an element in a list is within the viewport or not.For this i'm using the angular2 plugin angular-inviewport . What the plugin does is as soon as the card is withing the bottom of the window it return true.I want that the card should be in the center or at least somewhat near to the top of the window before i register the impression. For this i need the reference of the current element and compare it with the window height and Yoffset something like this (the last solution) . Below is a small snippet from my code and the callback i have. <li class="" *ngFor="let data of