search for: url_id

Displaying 4 results from an estimated 4 matches for "url_id".

Did you mean: src_id
2006 Apr 29
2
Seeing performance problems with has_many :through relation
...ecords ) 2 fields, id and url Table 2: phrases ( there are about 87,000 records ) 2 fields, id and phrase (w/ an index defined on phrase) A given url can be associated w/ many phrases and a given phrase can be associated with many urls. Table 3: relations ( there are about 235,000 records ) id, url_id, phrase_id and isrel (int) w/ an index created on url_id,phrase_id In Relation model I have belongs_to :url belongs_to :phrase In Url model I have has_many :relations has_many :phrases, :through => :relations In Phrase model I have has_many :relations has_many :urls, :throug...
2006 Apr 28
9
Q: Timing of render :update in an action ?
Hey folks, am hoping someone can set me straight with a solution to an issue that has come up involving the timing of rendered page elements in relation to the completion of an action''s execution. I have an ror search app which searches through two tables consisting of 7,000 page urls and a table w/ 87,000 related keyphrases within those pages. Search results can take anywhere from 2
2006 Apr 24
9
Confusion with expressing many to many relationship
Hi folks, I am in the process of converting an existing non-rails application to rails, and am not sure what the best approach would be for specifying the relationship between the two sets of data. I''ll describe the existing table structures first. Table 1: Urls Each url has a unique id and two lists of Phrases, these are currently setup as varchars with "," delimitation -
2006 Jul 31
9
Problems with ever-increasing ID value
I have a script that I am using to populate a database from a CSV file: RAILS_ENV = ''development'' require File.dirname(__FILE__) + ''/../../config/environment'' require ''csv'' # Destroy existing data Residence.destroy_all # IMPORT DATA FROM apartments.csv db_file = "#{RAILS_ROOT}/db/apartments.csv" CSV.open(db_file, "r",