Results 1 to 16 of 16

Thread: Database using files

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Mississippi
    Posts
    54

    Database using files

    What I want to do is write a database program that is independent of SQL, MySQL, Access, etc...

    I don't want to use Access due to file size limitations and speed decrease. I don't want to use SQL due to expense and licensing. I looked at MySQL, but I don't want to purchase it for commercial use, which is what I would have to do since my project is not open-source.

    So...I plan on using files.

    I have a program that currently works off of files. It has several functions to load the file to memory as a string, set fields, write the string back to file, etc...and it all works fast.

    However, I am trying to think long-term and how it will work in terms of speed as the database grows and more files are added.

    So, it would help if I knew how SQL and other databases work. I assume they make use of memory, since it is a lot faster than accessing from the hard drive. Also, I assume there is some indexing going on or something that makes it so fast.

    My question for you guys is can anyone offer some ideas that would help me make this a reality?

    Thanks!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Hmm... Ambitious.

    Have you considered using XML? It's a standard, and there are classes that let you work with it efficiently enough to meet your needs.

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Mississippi
    Posts
    54
    mendhak: I have not. Can you point me in the direction of a good tutorial on using XML in this regard?

    Thanks you very much!

  4. #4
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    Hi

    You could also use MSDE its free has 2 limitations maximum over Sql Server dababase size is 2gb and a maximun number of users limited to 5.

    Regards
    Jorge
    "The dark side clouds everything. Impossible to see the future is."

  5. #5
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    Asgorath, you sure about the maximum number of users is five? I have not tested, that's why I'm asking, but according to Microsoft's paper on the workload governor , it allows 32,767 connections.

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by EltonHenley
    mendhak: I have not. Can you point me in the direction of a good tutorial on using XML in this regard?

    Thanks you very much!
    VB6 or VB.NET?

  7. #7
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    What i mean is 5 paralel queries running at the same time.

    Regards
    Jorge
    "The dark side clouds everything. Impossible to see the future is."

  8. #8
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690
    ok, and I hope I don't appear belligerant, thing is I don't really know from experience, just what I've read. According to that paper, the workload governor slows things down when you have 8 active "operations" at the same time. And then it just slows things down, does not deny another operation.

    Have you experience differently?

  9. #9
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    Originally posted by Mike Hildner
    ok, and I hope I don't appear belligerant, thing is I don't really know from experience, just what I've read. According to that paper, the workload governor slows things down when you have 8 active "operations" at the same time. And then it just slows things down, does not deny another operation.

    Have you experience differently?
    No i haven't, the performance is decreased but there query are executed.
    "The dark side clouds everything. Impossible to see the future is."

  10. #10
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    I know most modern database managers use a B-Tree to store data.

  11. #11

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Mississippi
    Posts
    54
    Mendhak: VB6

    Sorry about the delayed answer! Now I'm gonna go read the rest of the posts.

  12. #12

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Mississippi
    Posts
    54
    Dave: B-Tree? Hrm...that's a new one on me. I'll have to google it.

  13. #13
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    Make sure to include the text data structure in your search:

    http://lesk.com/mlesk/sciam84/sciam84.html

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  15. #15

    Thread Starter
    Member
    Join Date
    Oct 2004
    Location
    Mississippi
    Posts
    54
    Excellent! Thanks a lot, guys!

  16. #16
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961
    If you do decide to go the route of XML, make sure you take The XML Litmus Test:

    http://msdn.microsoft.com/library/de...ml10202004.asp

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