Click here to Skip to main content
15,900,482 members
Home / Discussions / Database
   

Database

 
Questionusing DataTable in place of DataSet Pin
Himalay Oza25-Jan-06 3:38
Himalay Oza25-Jan-06 3:38 
AnswerRe: using DataTable in place of DataSet Pin
Paul Conrad25-Jan-06 6:28
professionalPaul Conrad25-Jan-06 6:28 
Questiondataview and databinding ? Pin
Isabel oliveira24-Jan-06 14:40
Isabel oliveira24-Jan-06 14:40 
QuestionImport Cast Error in SQL Server 2005 Pin
Tiger45623-Jan-06 18:55
Tiger45623-Jan-06 18:55 
Questiontable construction/design question Pin
Jim Crafton23-Jan-06 15:36
Jim Crafton23-Jan-06 15:36 
AnswerRe: table construction/design question Pin
Rob Graham23-Jan-06 17:14
Rob Graham23-Jan-06 17:14 
GeneralRe: table construction/design question Pin
Jim Crafton24-Jan-06 2:47
Jim Crafton24-Jan-06 2:47 
GeneralRe: table construction/design question Pin
Jim Crafton26-Jan-06 16:20
Jim Crafton26-Jan-06 16:20 
Well I tried this technique with SQLite. And got all the data entered, my main symbols table had over 11,000 entries, and the functions table over 7200. And getting things to join takes FOREVER (about 20 secs)!!! It's insanely slow (this on a P4 3 GHz with HT). So while I much prefer the organization of this method, it seems like it just isn't going to work well with sqlite. I suspect that this is a problem with sqlite.

Just for kicks here's how I created the tables:

CREATE TABLE Types (
       TypeID INTEGER PRIMARY KEY
     , TypeInfo CHAR(125)
);

CREATE TABLE Templates (
       TemplateID INTEGER PRIMARY KEY
     , TemplateSignature CHAR(125)
);

CREATE TABLE Files (
       FileID INTEGER PRIMARY KEY
     , Path CHAR(255)
);

CREATE TABLE Symbols (
       Id INTEGER PRIMARY KEY
     , Kind INTEGER
     , Name CHAR(125)
     , FileID INTEGER
     , TypeID INTEGER
     , Offset INTEGER
     , LineNumber INTEGER
     , TemplateID INTEGER DEFAULT 0 NOT NULL
     , Parent INTEGER DEFAULT 0
);

CREATE TABLE Functions (
       FuncID INTEGER PRIMARY KEY
     , Signature CHAR(125)
     , SymbolID INTEGER
     , ReturnTypeID INTEGER NOT NULL
);


I left out the FK stuff as sqlite ignores it apparently.

For the query I tried:

select symbols.name,functions.signature from symbols, functions where
  functions.symbolid = symbols.id;


It does eventually return, but it's impossible to use, so for now I think I'm just going to go with the single table approach. The query is a little more difficult to formulate, but it's *really* fast.



¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
GeneralRe: table construction/design question - RESOLVED Pin
Jim Crafton26-Jan-06 17:54
Jim Crafton26-Jan-06 17:54 
AnswerRe: table construction/design question Pin
Damodar Periwal24-Jan-06 12:53
Damodar Periwal24-Jan-06 12:53 
GeneralRe: table construction/design question Pin
Jim Crafton24-Jan-06 15:35
Jim Crafton24-Jan-06 15:35 
GeneralRe: table construction/design question Pin
Damodar Periwal24-Jan-06 15:46
Damodar Periwal24-Jan-06 15:46 
QuestionHow to send email on perticular date and time? Pin
vicky45723-Jan-06 13:57
vicky45723-Jan-06 13:57 
AnswerRe: How to send email on perticular date and time? Pin
Qaiser Mehmood Mughal24-Jan-06 3:33
Qaiser Mehmood Mughal24-Jan-06 3:33 
GeneralRe: How to send email on perticular date and time? Pin
vicky45724-Jan-06 6:58
vicky45724-Jan-06 6:58 
Questionarrange by nearest date? Pin
jszpila23-Jan-06 10:03
jszpila23-Jan-06 10:03 
AnswerRe: arrange by nearest date? Pin
Colin Angus Mackay23-Jan-06 11:47
Colin Angus Mackay23-Jan-06 11:47 
GeneralRe: arrange by nearest date? Pin
jszpila23-Jan-06 12:25
jszpila23-Jan-06 12:25 
GeneralRe: arrange by nearest date? Pin
Colin Angus Mackay23-Jan-06 12:32
Colin Angus Mackay23-Jan-06 12:32 
GeneralRe: arrange by nearest date? Pin
jszpila24-Jan-06 3:45
jszpila24-Jan-06 3:45 
QuestionGetDate() in Stored Procedure Pin
Michael Flanakin23-Jan-06 5:35
Michael Flanakin23-Jan-06 5:35 
GeneralRe: GetDate() in Stored Procedure Pin
Michael Flanakin23-Jan-06 5:38
Michael Flanakin23-Jan-06 5:38 
GeneralRe: GetDate() in Stored Procedure Pin
Michael Flanakin23-Jan-06 5:54
Michael Flanakin23-Jan-06 5:54 
AnswerRe: GetDate() in Stored Procedure Pin
Qaiser Mehmood Mughal24-Jan-06 3:15
Qaiser Mehmood Mughal24-Jan-06 3:15 
Questionusing ado Pin
yamunasenthilvel23-Jan-06 4:58
yamunasenthilvel23-Jan-06 4:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.