CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Urgent, need Idea to speed up my huge database

    I have a huge database, with nearly 300000 people. I want to search quickly for a one by name or birth. But It lasts much too long. Who can help. Please help. A little advice would be enough.


  2. #2
    Join Date
    Jul 2000
    Posts
    136

    Re: Urgent, need Idea to speed up my huge database

    do you have indexes on Name and Birthdate?

    mike

  3. #3
    Join Date
    Nov 1999
    Location
    Dresden / Germoney
    Posts
    1,402

    Re: Urgent, need Idea to speed up my huge database

    Hi,
    Sometimes, it might be necessary to compact the databas e(typically with smaller engines like JET).
    Also, Dou you already have an index on the column(s) you're searching for?

    Peter


  4. #4
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    Hi. I know that I need indexes, but I do not know how it works.


  5. #5
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    Compacting is good, but in the future my database will perhaps grow to a million people and than it is still slow with compaction. THe indexes are very good, but I do not know how to use them. Perhaps help again?


  6. #6
    Join Date
    Jul 2000
    Posts
    136

    Re: Urgent, need Idea to speed up my huge database

    an index created a column or set of columns that you use to do searches...i believe it sets up a b-tree for that column (or group of columns)...to create one just do this after you create the table

    CREATE INDEX MyIndex ON TableName(Column1[,Column2[,...]])

    mike

  7. #7
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    Thank you for the fast reply. I'll try it. Can I send you an eMail, if I still have any problems?


  8. #8
    Join Date
    Jul 2000
    Posts
    136

    Re: Urgent, need Idea to speed up my huge database

    sure, you can post here or email michael.deskevich@smed.com...i'll be at work for another half hour...after that just email me at home: mikedeskevich@yahoo.com

    mike

  9. #9
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    Thank you. I think that I will have to ask you. Because I use VC 6.0++ and the kind of writing the code you did I have never uses. Basic?. But I'll try first. Bye. Thanks.


  10. #10
    Join Date
    Jul 2000
    Posts
    136

    Re: Urgent, need Idea to speed up my huge database

    no, that CREATE INDEX... is SQL DDL code...it belongs in the schema file you are using to actually create the tables in your data base...if you're not using a schema file, then you have to go into the dbms and set up the index...where you do this depents on which dbms you are using.

    mike

  11. #11
    Join Date
    Nov 1999
    Location
    Dresden / Germoney
    Posts
    1,402

    Re: Urgent, need Idea to speed up my huge database

    You have an good answer from mike.

    If compacting is _possible_ with your DB, either you say "DB Admin has to do it", or you change to another engine...

    Still need help?


  12. #12
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    Wow. it is wonderful these fast replay. Thank you again. I hope I will achieve. Thank you. Perhaps till later.


  13. #13
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Urgent, need Idea to speed up my huge database

    I thought of indexes or something like that. But thank you.


  14. #14
    Join Date
    May 1999
    Location
    Wisconsin, USA
    Posts
    953

    Re: Stored Procedures

    If indexes do not sufficiently speed up your query, you want to keep the indexes but perhaps next try Stored Procedures.



  15. #15
    Join Date
    Apr 2000
    Location
    Germany, Berlin
    Posts
    41

    Re: Stored Procedures

    Could you explain it more exactly, it sounds iteresting?


Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured