|
-
Nov 9th, 2004, 03:02 PM
#1
Thread Starter
Member
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!
-
Nov 10th, 2004, 12:07 AM
#2
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.
-
Nov 10th, 2004, 11:32 AM
#3
Thread Starter
Member
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!
-
Nov 10th, 2004, 11:40 AM
#4
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."
-
Nov 10th, 2004, 11:47 AM
#5
Frenzied Member
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.
-
Nov 10th, 2004, 11:52 AM
#6
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?
-
Nov 10th, 2004, 11:57 AM
#7
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."
-
Nov 10th, 2004, 12:04 PM
#8
Frenzied Member
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?
-
Nov 10th, 2004, 12:08 PM
#9
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."
-
Nov 10th, 2004, 12:36 PM
#10
I know most modern database managers use a B-Tree to store data.
-
Nov 17th, 2004, 05:12 PM
#11
Thread Starter
Member
Mendhak: VB6
Sorry about the delayed answer! Now I'm gonna go read the rest of the posts.
-
Nov 17th, 2004, 05:13 PM
#12
Thread Starter
Member
Dave: B-Tree? Hrm...that's a new one on me. I'll have to google it.
-
Nov 17th, 2004, 05:16 PM
#13
Make sure to include the text data structure in your search:
http://lesk.com/mlesk/sciam84/sciam84.html
-
Nov 18th, 2004, 12:03 AM
#14
-
Nov 19th, 2004, 05:08 PM
#15
Thread Starter
Member
Excellent! Thanks a lot, guys!
-
Nov 29th, 2004, 05:16 PM
#16
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|