Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [database]

The tag has no usage guidance.

0
votes
1answer
24 views

What is the most reliable way to sync contact account tables?

I have a contract account which has some tables. I want to watch for onchain table changes and sync them to an offline database as soon as possible. What is the most reliable way to do this? I have ...
0
votes
1answer
35 views

How to read data at certain block number on EOS?

How to read data at certain block number on EOS? e.g. How could I read the data of a contract's table at certain block number?
3
votes
1answer
105 views

How do I create a Multi-Index DB secondary index from a String?

I'm developing a Smart Contract for EOSIO. I have a Multi-Index table with a uint64_t primary key. I'd like to add a secondary index to the table. Ideally the data I'd be indexing on would be a std::...
0
votes
1answer
19 views

How to get/query creation time of account in mongodb?? (inserted data with monogo_db_plugin)

I'm syncing with mongo_db_plugin enabled. But, when I see 'acctounts' collection in mongo, createAt is time created in monogo, not actual eos mainnet. How can I query mongo to get accounts creation ...
0
votes
1answer
59 views

Can we use mongodb store state?

I read chainbase and fork database, I understood chainbase which stores user state and fork database which stores blocks. So Can I use mongodb to store user state and ignore chainbase? If it can, we ...
0
votes
1answer
39 views

What is mongodb_plugin used for?

I have some confuse with chain_plugin and mongo_plugin, why do we need them? And if I can modify chainbase which can write directly state to disk, Do I can discard mongoDB?
1
vote
2answers
96 views

Can I use MongoDB for storing data locally instead of storing in RAM?

I found that storing data in EOS RAM is sometimes expensive in turn makes it impractical. Can I use MongoDB for storing such data locally instead of storing in RAM?
1
vote
0answers
17 views

Is there a json schema file for eos that defines accounts, keys, transactions, blocks, etc

Is there a json schema file or data-model for eos that defines accounts, keys, transactions, blocks, etc...
4
votes
1answer
73 views

Which BP's offer snapshots for v1.4? --mongodb-wipe?

Which BP's or websites offer snapshots for v1.4 ? Is --mongodb-wipe still required for replaying?
1
vote
1answer
30 views

eosforumdapp mongodb : unsupported_abi_version_exception: ABI has an unsupported version

Syncing my node, everything works fine. I get a warning though when processing transactions from eosforumdapp and eosforumcpp info 2018-10-20T09:07:14.286 thread-1 mongo_db_plugin.cpp:481 ...
3
votes
2answers
88 views

Is LevelDB used in EOS?

I know Ethereum uses leveldb. When I checked into EOS I could not find that much out. I thought when I tested I did see leveldb. Can someone confirm how the immutable data is stored? EDIT I think ...
1
vote
1answer
62 views

make nodeos use mongod.conf to change dbpath

Currently when trying to use the mongodb plugin, I get this error 2018-10-11T15:47:15.635 thread-0 mongo_db_plugin.cpp:513 handle_mongo_excepti ] mongo exception, mongo init, line 1391, code ...
2
votes
1answer
38 views

What actully happens in the background when a block is created?

I want to know the whole background process of the block creation what is the actual implementation what happens? Where it stores the data? How it stores the data?
1
vote
2answers
194 views

Where is the mongodb stored?

Seems my node is syncing, but so far I cannot find the mongodb and the path isn't mentioned in the docs. Trying to setup a non-producing node to query specific incoming transactions. Using Ubuntu 16....
4
votes
2answers
88 views

EOS smart contracts and big data

Imagine situation when I need to save a big data In smart contract (for example 1000 000 000 row of information - or just 1 TB). In case of ETH it's almost impossible because gas price goes to hell. ...
0
votes
1answer
325 views

What is the ChainBase database used for?

EOSIO appears to make use of the Chainbase database for various functions in the codebase. What is this used for and how does it relate to the RAM concept in EOSIO? Is it simply the database used to ...
3
votes
1answer
98 views

Why doesn't EOS use other database?

Currently in EOS, it uses the memory database with the mmap and customized session, and sometimes when the node is down, it will cause inconsistent state and the data can't be recovered, we need to ...
2
votes
2answers
104 views

How can I download all ledger blocks as a JSON dump?

I'm trying to download a relatively up-to-date dataset of all blocks in JSON format, but haven't found a good solution: cleos can only fetch blocks one by one ($ cleos get block n) which is way too ...
0
votes
1answer
97 views

How to retrieve historical EOS supply?

I know $ cleos get currency stats eosio.token EOS reports the current supply in the blockchain, but how can I get the supply through time?
1
vote
2answers
378 views

One-to-many relationship in Multi Index Tables

Is there a method for storing one-to-many relationships within a table? Say I had a Player, and the player had multiple Tickets. How could I store multiple ticket primary keys within one player?
1
vote
1answer
137 views

Why use databases in smart contract?

As we can store data in map, why we need to create table for it, and why we need to pay for the fee for create and modify records? How much is the ram fee, how to avoid it? If I use map, who will ...
2
votes
1answer
69 views

How do you stream data from an input file when writing contracts on EOS?

I emulated the tic.tac.toe tutorial code and made a simple contract that allows me to add and remove car information. However, I can only push action one at a time and this only allows me to add/...
6
votes
1answer
393 views

Can a smart contract communicate externally?

Can EOSIO smart contracts communicate externally, say, to some external (preexisting) web-service? I suspect the answer is no, as this would violate determinism, among other guarantees. What is the ...
2
votes
3answers
144 views

SQL-like database in contract?

How would one implement or use an SQL database in a contract? What would be the best practices for this? There could be a lot of data here, but I need to easily select and update.
4
votes
1answer
68 views

Does EOS DB support text-based queries?

Can I query a table with an indexed string column a la SQL? Is something like this possible for example: SELECT * from <table_name> where <my_string_column> LIKE '%test%';
13
votes
3answers
522 views

Are Tables/DBs stored in RAM and held by multiple block producers?

We do have the Persistence API to store data for a smart contract in the EOSIO database. I was wondering where this database is located. I understood that it is patterned after Boost Multi-Index. 1) ...