storj/satellite/satellitedb
Jeff Wendling f671eb2beb satellite/satellitedb: use queue for orders to get back fast billing
This change adds two new tables to process orders as fast as we used
to but in an asynchronous manner and with hopefully less storage
usage. This should help scale on cockroach, but limits us to one
worker. It lays the groundwork for the order processing pipeline to
be queue rather than database driven.

For more details, see the added fast billing changes blueprint.

It also fixes the orders db so that all the timestamps that are
passed to columns that do not contain a time zone are converted to
UTC at the last possible opportunity, making it less likely to use
the APIs incorrectly. We really should migrate to include timezones
on all of our timestamp columns.

Change-Id: Ibfda8e7a3d5972b7798fb61b31ff56419c64ea35
2020-02-24 17:07:07 +00:00
..
dbx satellite/satellitedb: use queue for orders to get back fast billing 2020-02-24 17:07:07 +00:00
pbold common: separate repository 2019-12-27 14:11:15 +02:00
satellitedbtest private/testplanet: flatten migration for running tests 2020-01-22 15:09:11 +00:00
testdata satellite/satellitedb: use queue for orders to get back fast billing 2020-02-24 17:07:07 +00:00
apikeys.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
attribution_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
attribution.go satellite/satellitedb: add missing err check 2020-01-19 19:24:12 +00:00
buckets.go satelite/metainfo: return NotFound on delete non existing bucket 2020-02-18 09:05:30 +00:00
coinpaymentstxs.go satellite/payments: fail when trying to consume consumed transactions 2020-02-13 19:52:55 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go satellite/payments: fix promotional coupons 2020-01-29 16:40:43 +02:00
containment.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
coupons.go satellite/satellitedb: better coupons query 2020-01-20 15:05:10 +02:00
credits.go satellite/payments/stripecoinpayments: credits added to invoice calculations 2020-02-24 16:48:27 +00:00
customers.go satellite/payments: fix promotional coupons 2020-01-29 16:40:43 +02:00
database.go satellite/satellitedb: reported_serials table for processing orders 2020-01-15 19:21:21 -07:00
downtime.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
gracefulexit.go satellite/satellitedb: gracefulexit, add missing Errs check 2020-01-19 15:24:12 +00:00
invoiceprojectrecords.go satellite/payments/stripecoinpayments: credits added to invoice calculations 2020-02-24 16:48:27 +00:00
irreparabledb.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
migrate_test.go satellite/satellitedb: add benchmark for satellitedb setup and close 2020-02-11 13:30:23 +00:00
migrate.go satellite/satellitedb: use queue for orders to get back fast billing 2020-02-24 17:07:07 +00:00
offers.go satellite: use tagsql 2020-01-19 14:39:16 +02:00
orders.go satellite/satellitedb: use queue for orders to get back fast billing 2020-02-24 17:07:07 +00:00
overlaycache.go all: use monkit v3 2020-02-05 23:53:17 +00:00
peeridentities.go satellite: use tagsql 2020-01-19 14:39:16 +02:00
projectaccounting.go satellite/satellitedb: don't include GET_AUDIT and GET_REPAIR with chargeable BW 2020-02-07 12:02:44 +00:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
projects_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
projects.go satellite/payments: fix projects list pagination 2020-02-21 19:37:11 +02:00
regtokens.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
repairqueue.go storage: add configurable lookup limits 2020-01-22 21:35:56 +02:00
resetpasstokens.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
storagenodeaccounting.go satellite/satellitedb: use arrays and batch inserts for SaveTallies query 2020-01-27 16:54:20 -05:00
stripecoinpaymentsdb.go satellite/payments : deposit bonuses (credits) added 2020-02-11 11:11:42 +00:00
usercredits.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
utils_test.go common: separate repository 2019-12-27 14:11:15 +02:00
utils.go common: separate repository 2019-12-27 14:11:15 +02:00