Ruby on Rails
Wednesday, April 28, 2010
hi,
i wanted to use 'activerecord-import' for bulk import but i have dependent tables.
if i insert in one table then two more tables have to be inserted with the foreign key. can i use activerecord-import in this case.
the database structure would be like:
a product table with a product_details table having a one-to-one relationship
and a product_index table having some selected columns from product, product_details table to make indexing and pagination faster.
another table having a counter_cache to make pagination easier.
so any inserts for products will be split into the product and product_details table, with some selected information being inserted into product_index table.
ccing: zach.dennis@gmail.com
thanks,
deepak
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment