API для данных

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

API для данных

Anton Maksimenkov
"? ????? '???????'" (c)

 ???? ?????? ?????? ? ?????? ???????. ????? ??? ????? API ?? C?,
??????????? ????????? ????????/??????? ??????. ?????? ????????? ?
?????????????. ??????? ??? ?? ?????? ????.

 ??????? ???? ???? ????????, queue(3). ?? ???? ?? ????? ????????
???????, ??? ??????? ?? ????????, ?.?. ??? ?????? ? ??? ??????????
?????? ???????????????? ?????? ???? (??, ??? ??? ??????? ?????)
???????. ??? ?????????? ?????? ??? 10000 ? ????? ??? ?? ????????.
 ???? ???????? ????????? ?? (MySQL/PostgreSQL) ?? ????????? - ??????
????????? ? ????? ?????????? ????????, ? ??? ?? ??????????? ????? ???
????? ??, ??????? ??? ???????? ????????. MySQL ?????? ????????? -
???????? "???????" ??????, ????????; ???????????? ?? ??????? ? ????
???????? ????????.

 ????????? ???????? ? ???? db4, /usr/ports/databases/db/v4/. ???
????? ?????? API, ???????? ?? ???????? "????"=>"??????????". ??
?? ??? ? ????????? ????, ????? ?????? ? ??????????. "?? ??????"
????????? ?????????? ??????.
 ? "????", ? "??????????" ????? ???? ????? ?????, ? ??????????, ?
???????? (??? ??? ? ???? ????). ???? ???????? ?????????? ? ????,
?????????? ?? ???? "???????????" ?? "?????". ???? ????????????????
?????? ? ??????????? ???? ??????. ??? API ???? ????????? ?????????
??????, ? ????? ???????? ?????????? (??? ?? MySQL ?? ?? ???????).
 ???? ?????? ? ?? db4 ??????????. ???? ????????? ????? ??????? ??
????????? ?????????? ????? API, ?????-?? ???????? ????????, ?? ???
????????? ??? (?????????? ??? ???? ?? ????). ? ? ??? ?????? ??????.


 ??? ???, ??? ?????? ?????. ? ????? ???? ?????? ????????/??????????
??? ??????????? ??????, ?????????/??????????? ????????

 ? ????? ???? ? ??????? ???-?? ??????? queue, ????? ?????????? ???
????? (? ??????????) ????? ???????? ???????????
 
--
engineer


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

Oleg Safiullin
Anton Maksimenkov wrote:
> "? ????? '???????'" (c)
>
>  ???? ?????? ?????? ? ?????? ???????. ????? ??? ????? API ?? C?,
> ??????????? ????????? ????????/??????? ??????. ?????? ????????? ?
> ?????????????. ??????? ??? ?? ?????? ????.
>
>  ??????? ???? ???? ????????, queue(3). ?? ???? ?? ????? ????????
> ???????, ??? ??????? ?? ????????, ?.?. ??? ?????? ? ??? ??????????
> ?????? ???????????????? ?????? ???? (??, ??? ??? ??????? ?????)

man tree

:)


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

egor-2
In reply to this post by Anton Maksimenkov
Anton Maksimenkov wrote:

>"? ????? '???????'" (c)
>
> ???? ?????? ?????? ? ?????? ???????. ????? ??? ????? API ?? C?,
>??????????? ????????? ????????/??????? ??????. ?????? ????????? ?
>?????????????. ??????? ??? ?? ?????? ????.
>
> ??????? ???? ???? ????????, queue(3). ?? ???? ?? ????? ????????
>???????, ??? ??????? ?? ????????, ?.?. ??? ?????? ? ??? ??????????
>?????? ???????????????? ?????? ???? (??, ??? ??? ??????? ?????)
>???????. ??? ?????????? ?????? ??? 10000 ? ????? ??? ?? ????????.
> ???? ???????? ????????? ?? (MySQL/PostgreSQL) ?? ????????? - ??????
>????????? ? ????? ?????????? ????????, ? ??? ?? ??????????? ????? ???
>????? ??, ??????? ??? ???????? ????????. MySQL ?????? ????????? -
>???????? "???????" ??????, ????????; ???????????? ?? ??????? ? ????
>???????? ????????.
>
> ????????? ???????? ? ???? db4, /usr/ports/databases/db/v4/. ???
>????? ?????? API, ???????? ?? ???????? "????"=>"??????????". ??
>?? ??? ? ????????? ????, ????? ?????? ? ??????????. "?? ??????"
>????????? ?????????? ??????.
> ? "????", ? "??????????" ????? ???? ????? ?????, ? ??????????, ?
>???????? (??? ??? ? ???? ????). ???? ???????? ?????????? ? ????,
>?????????? ?? ???? "???????????" ?? "?????". ???? ????????????????
>?????? ? ??????????? ???? ??????. ??? API ???? ????????? ?????????
>??????, ? ????? ???????? ?????????? (??? ?? MySQL ?? ?? ???????).
> ???? ?????? ? ?? db4 ??????????. ???? ????????? ????? ??????? ??
>????????? ?????????? ????? API, ?????-?? ???????? ????????, ?? ???
>????????? ??? (?????????? ??? ???? ?? ????). ? ? ??? ?????? ??????.
>
>
> ??? ???, ??? ?????? ?????. ? ????? ???? ?????? ????????/??????????
>??? ??????????? ??????, ?????????/??????????? ????????
>
> ? ????? ???? ? ??????? ???-?? ??????? queue, ????? ?????????? ???
>????? (? ??????????) ????? ???????? ???????????
>
>  
>
sqlite


Reply | Threaded
Open this post in threaded view
|

Re[2]: API для данных

Anton Maksimenkov
In reply to this post by Oleg Safiullin
Hi, Oleg.

>>  ???? ?????? ?????? ? ?????? ???????. ????? ??? ????? API ?? C?,
>> ??????????? ????????? ????????/??????? ??????. ?????? ????????? ?
>> ?????????????. ??????? ??? ?? ?????? ????.
>>  ??????? ???? ???? ????????, queue(3). ?? ???? ?? ????? ????????
>> ???????, ??? ??????? ?? ????????, ?.?. ??? ?????? ? ??? ??????????
>> ?????? ???????????????? ?????? ???? (??, ??? ??? ??????? ?????)
> man tree

??. ?????????. ?????? ??????, ??? ???????? ????????? (???????? ?????
Provos ??? ???????? ?? ??????? ?????????????) ? ??? ?????? ?? ???????,
???? ???? ???? ? ?????? ? ???????. ???????????? ?????????

struct TYPE find, *res;
find.key = 30;
res = SPLAY_FIND(NAME, &head, &find);

???

struct TYPE find, *res;
find.key = 30;
res = RB_FIND(NAME, &head, &find);

??????? ???????? ???????? ?? ????? ???????? ?? ????????????? :-))
 ??????, ??? ??????? - ??? ?? ???????, ??? ? queue - ?? ?????? ???????
????? malloc() ?????. ?? ? db4 ???????? ? ??????, ????? ???????? ???
mmap(), ??? ??????? ????????? ?????.
 ??? ???? ????? ????????? ????? ????????? ????? ????? (?? ????? ??
??????? 24 ?????)? ??? ???-?? ??? ? ????? ????? ??? ????????? ? ?????
????? ??????????. ????? ??? ??? malloc ????? ???????? ????? ?
???????????? ??????, ??...

 ???? ?????????? "?? ???? ?? free(), ???? ????? ????, ??? ???????,
???? ?????, ? ???? ?????????? ?????????????, ??? ????????????? ???
????? ???????????? ???????? ??? ???????? ??????? ???????????; ?
???????????? ????????? ?? ???? ?????, ??? free() ?????? ??????".
 ?? ??? ? ????????? ?????? ?????? (??????????? ?????? man'??) - ?????
??? ?????????? ????? ???????????? ????? ?? "?????? ?? ?????????
???????????", ? ?? ?????. ??? ???? ???????? ?????? ????? ?????????
???????????...


 ??????, ??????? ?? ????!
 
--
engineer


Reply | Threaded
Open this post in threaded view
|

Re[2]: API для данных

Anton Maksimenkov
In reply to this post by egor-2
Hi, ??????.

> sqlite

???????? ???????. ???? ???? ????????????? (? ????? "??, ??????????,
????????" ??? "?????? ?????, ??? ?? ????????") ?

--
engineer


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

egor-2
Anton Maksimenkov wrote:

>Hi, ??????.
>
>  
>
>>sqlite
>>    
>>
>
>???????? ???????. ???? ???? ????????????? (? ????? "??, ??????????,
>????????" ??? "?????? ?????, ??? ?? ????????") ?
>
>  
>
??. ???????????.
?????? ? ?????? ? TCL, ? ?? ? ??.

? ??? ??????? ?? ?????:
 > ?????? ????????? ? ?????????????.
?
 >  ?????? ????????? ? ????? ?????????? ????????,

???-???? ?????? ?????????? ??? ?????????

? ?????? sqlite ??? ???????? ????? ??????? ???????.


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

Alex Kirhenshtein
In reply to this post by Anton Maksimenkov
?? ????????, ? ?? ? ????? ????????. ? ?????????? ???????? _?????_ ?????.

? ????????? ??????? ????????? ??????? ????? ?????? ????????? ?? ? std::map?

Anton Maksimenkov wrote:
> Hi, ??????.
>
>
>>sqlite
>
>
> ???????? ???????. ???? ???? ????????????? (? ????? "??, ??????????,
> ????????" ??? "?????? ?????, ??? ?? ????????") ?
>


--
Alex Kirhenshtein
C.T.Co
Cellular: +371-9145688


Reply | Threaded
Open this post in threaded view
|

Re[2]: API для данных

Anton Maksimenkov
In reply to this post by egor-2
Hi, ??????.

> ? ??? ??????? ?? ?????:
 >> ?????? ????????? ? ?????????????.
> ?
 >>  ?????? ????????? ? ????? ?????????? ????????,
> ???-???? ?????? ?????????? ??? ?????????

 ??? ??????, ??? ??????? ?????? - ??? ????????????? ?????????
????????????? ?? ????????? (????? ?????, ??????? ??????? ????????
????????) ?????????? ??????? (????? ?????? ???????? ??????? ????????
????). ?? ???? ???? ?????? (?????? ? ?????????? ????????) ???????? ??
????? ????????? ? ???????????.
 ?? ?????????? ???? ????????? ? ???? ?????? ?????????? - ??????????
??????????? ?????, ?? ????? checkpoint'?? ?????????? ?? ??????? ?????,
???????????? ??????? ????????? ??????. ?? ???? ?????? (?????
?????????? ????) ????? ?????????? ??????????.

?????????, ??? ??? ????? ???????? ????? ????????? ???? "??????".

> ? ?????? sqlite ??? ???????? ????? ??????? ???????.
??????.
--
engineer


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

Dinar Talypov
In reply to this post by Anton Maksimenkov

AM> "? ????? '???????'" (c)

AM>  ???? ?????? ?????? ? ?????? ???????. ????? ??? ????? API ?? C?,
AM> ??????????? ????????? ????????/??????? ??????. ?????? ????????? ?
AM> ?????????????. ??????? ??? ?? ?????? ????.

AM>  ??????? ???? ???? ????????, queue(3). ?? ???? ?? ????? ????????
AM> ???????, ??? ??????? ?? ????????, ?.?. ??? ?????? ? ??? ??????????
AM> ?????? ???????????????? ?????? ???? (??, ??? ??? ??????? ?????)
AM> ???????. ??? ?????????? ?????? ??? 10000 ? ????? ??? ?? ????????.
AM>  ???? ???????? ????????? ?? (MySQL/PostgreSQL) ?? ????????? - ??????
AM> ????????? ? ????? ?????????? ????????, ? ??? ?? ??????????? ????? ???
AM> ????? ??, ??????? ??? ???????? ????????. MySQL ?????? ????????? -
AM> ???????? "???????" ??????, ????????; ???????????? ?? ??????? ? ????
AM> ???????? ????????.

AM>  ????????? ???????? ? ???? db4, /usr/ports/databases/db/v4/. ???
AM> ????? ?????? API, ???????? ?? ???????? "????"=>"??????????". ??
AM> ?? ??? ? ????????? ????, ????? ?????? ? ??????????. "?? ??????"
AM> ????????? ?????????? ??????.
AM>  ? "????", ? "??????????" ????? ???? ????? ?????, ? ??????????, ?
AM> ???????? (??? ??? ? ???? ????). ???? ???????? ?????????? ? ????,
AM> ?????????? ?? ???? "???????????" ?? "?????". ???? ????????????????
AM> ?????? ? ??????????? ???? ??????. ??? API ???? ????????? ?????????
AM> ??????, ? ????? ???????? ?????????? (??? ?? MySQL ?? ?? ???????).
AM>  ???? ?????? ? ?? db4 ??????????. ???? ????????? ????? ??????? ??
AM> ????????? ?????????? ????? API, ?????-?? ???????? ????????, ?? ???
AM> ????????? ??? (?????????? ??? ???? ?? ????). ? ? ??? ?????? ??????.


AM>  ??? ???, ??? ?????? ?????. ? ????? ???? ?????? ????????/??????????
AM> ??? ??????????? ??????, ?????????/??????????? ????????

AM>  ? ????? ???? ? ??????? ???-?? ??????? queue, ????? ?????????? ???
AM> ????? (? ??????????) ????? ???????? ???????????
AM>  

??????? ??? ???? ????????? ??, ??? ????? ??????? :)

???? ???? ?????? ? ?????? ? ????? ?????? ??????? ??? ?????????? SQL.
?? ?????????? ? ????????? ??? ??????? ??? ????? ??.
?? ???? ??? ??? ? ???? ???????? ?????????? ????????? ? ???????????? ?
???????? ?????????. ??????? ????????? ??????? ??????.



--
? ?????????,
????? ???????
??? "???????-?????"
?.(8555)45-17-45                      


Reply | Threaded
Open this post in threaded view
|

Re[3]: API для данных

Ластин Максим
In reply to this post by Anton Maksimenkov
Hello Anton,

Wednesday, December 7, 2005, 12:17:50 PM, you wrote:

AM> Hi, ??????.

>> sqlite

AM> ???????? ???????. ???? ???? ????????????? (? ????? "??, ??????????,
AM> ????????" ??? "?????? ?????, ??? ?? ????????") ?

? ???????? BerkleyDB ??? ????? ???? ??????. ????? ??????? ?? sqlite.
sqlite ???????? ????? ??????? ????????. ???????? ??????, ????????? ?
??? ????? ??? ? DB. ??? ???????? ???????????????? ?? ??, ?? sqlite ???
? ????, ? ?????-??, ?????????? ??? ?? ?????????????. ?????, ???????
??, ??????? ? ?? Perl, Tcl, PHP...

--
Best regards,
?????? ??????                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: API для данных

Andrey N. Oktyabrski
In reply to this post by egor-2
?????? ???? ?????????? wrote:
> Anton Maksimenkov wrote:
>> ??? ???, ??? ?????? ?????. ? ????? ???? ?????? ????????/??????????
>> ??? ??????????? ??????, ?????????/??????????? ????????
>>
>> ? ????? ???? ? ??????? ???-?? ??????? queue, ????? ?????????? ???
>> ????? (? ??????????) ????? ???????? ???????????
>>
> sqlite
???? ?? ????? ?????? ????????, gigabase ??????????. ??????, ??? ??????
??? ?++ ????????, ?? ??? ? ???? ???? api. ??????????? ??, ???????? ?
oops ??? ???????????? bdb.