Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

php - mysql lots of text columns or integer columns and a new table? -


i'm new mysql , have choice regarding mysql database structure new database. can have:

table1:(id,text1,text2,text3,text4,up text7)

or

table1:(id,int1,int2,int3,...up int7) int values link table 2 unique index

table2:(id2,text)

so basically, should put text in columns in single table or saparate , store index values in 1 table , text data in second table... queries given id code, return strings text 1 text 7. table large, ~1 million id's (meaning table 2 if method 2 used have ~7 million entries)

which method faster in opinion?

edit1: each text 250 letter characters in length. edit2: clarify, given id , query table getting 7 text items id. query done on tables , information ever required. need know faster use. if neither, please offer better way!

won't make speed difference if you're not querying based on text. keep simple , use 1 table. if have query text, you're going want change it.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -