|
|
|
|||||
|
How to drive thousands of files with Evictor ?
To test the ablility of evictor to support thousands of files, I change the demo code in ICE_HOME/demo/Freeze/phonebook/Server.cpp as following:
Quote:
Quote:
Thanks |
|
|||||
|
make the Signature done
__________________
Tang Fan ShenZhen Yijin Platform Network Technology Co.,Ltd Project: Stock quotation server |
|
||||||
|
Why would you want to create hundreds or thousands of Evictors?
It's like creating hundreds or thousands of tables in a relational database; why would you do it? Do you have hundreds of different types? This sounds quite unlikely. In any case, you can create more Evictors by tweaking the Berkeley DB configuration file. See this thread for details. Best regards, Bernard |
|
|||||
|
My DB_CONFIG as following:
Quote:
The reason that I want to create thousands of files with Evictors is: 1. I can't use a relational database,such as SQL SERVER, because my client need be support by database too and I want to use the same code both in server and client. 2. My current slice look like: Quote:
If I want to drive all stocks with one file, I have to change the slice like: Quote:
__________________
Tang Fan ShenZhen Yijin Platform Network Technology Co.,Ltd Project: Stock quotation server |
|
|||||
|
yeah,you remind me another way! Thanks a lot!All the reason that I choose the current awkward design is I did not understand the the use of indices clearly when I learned ICE a year ago.
I plan to change my slice like this: Quote:
1.How to index title with descending order ? since there is findFirst(member-type index, int firstN) function in ICE but no findlast function. 2. For given stockName, how to find all the records whose x<title.time&&title.time<y ?
__________________
Tang Fan ShenZhen Yijin Platform Network Technology Co.,Ltd Project: Stock quotation server |
|
|||||
|
Thanks for your suggestion.
I will review the chapter of Freeze Map and try it.
__________________
Tang Fan ShenZhen Yijin Platform Network Technology Co.,Ltd Project: Stock quotation server |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Trouble when using Evictor! | kent | Help Center | 7 | 04-12-2006 10:14 PM |
| Evictor question? | thelONE | Help Center | 2 | 10-27-2005 08:34 AM |
| Windows Installer assumes System Drive is on C: | RyanFogarty | Comments | 5 | 02-08-2005 08:19 AM |
| Evictor problem | xdm | Help Center | 11 | 10-14-2003 02:32 PM |
| evictor question | xdm | Help Center | 1 | 09-14-2003 02:11 AM |