2022-01-30, 11:25
In terms of loading the db at once, you can do something like:
```dart
final futures = 'abcdefghijklmnopqrstuvwxyz'.split('').map((char) => _sendRequest('search.php?f=$char'));
final results = await Future.wait(futures);
```
That will fire off 26 concurrent network requests, and load the entire db. It's very fast, and only transfers about 200kb (which is equal to like half of one image)
```dart
final futures = 'abcdefghijklmnopqrstuvwxyz'.split('').map((char) => _sendRequest('search.php?f=$char'));
final results = await Future.wait(futures);
```
That will fire off 26 concurrent network requests, and load the entire db. It's very fast, and only transfers about 200kb (which is equal to like half of one image)