Comments (4)
yeahh lol we really should do a real pagination method. for most APIs we can now, since we use supabase. the current behavior with before
and after
should stay the same though since it is semantically correct
I think this would be a pretty good task for an open source contribution ;)
from manifold.
change the query to SELECT * FROM BETS WHERE createdTime <= beforeId.createdTime && id != beforeId.id
Won't work if there are three bets A@1s, B@1s, C@1s and you've already got A and B; that solution would return A and C.
from manifold.
change the query to SELECT * FROM BETS WHERE createdTime <= beforeId.createdTime && id != beforeId.id
Won't work if there are three bets A@1s, B@1s, C@1s and you've already got A and B; that solution would return A and C.
Ah lol you're right - I guess you just need f64 timestamps eh
from manifold.
You can do something like:
SELECT *
FROM bets
WHERE
(
createdTime = beforeId.createdTime
AND id < beforeId.id
) OR (
createdTime < beforeId.createdTime
)
ORDER BY
createdTime DESC,
id DESC
basically using the tuple (createdTime, id). With Postgres directly I think you could actually go even simpler:
SELECT *
FROM bets
WHERE
(createdTime, id) < (beforeId.createdTime, beforeId.id)
ORDER BY
createdTime DESC,
id DESC
though thatβs not supported via the public Supabase API.
from manifold.
Related Issues (20)
- manifold.love registration/profile update silently fails with non-integer height values
- "Sign up" page crashes Brave browser HOT 2
- Feature request: Graph should display when you made your bets
- Feature request: email notification batching
- Notifications page error on dekstop & phone (Firefox/Chrome)
- Graph tooltips always show dates for "All" setting
- Daylight-savings bug causing incorrect leagues profit breakdown to be displayed [with fix!]
- Value for argument "data" is not a valid Firestore document. Input object is deeper than 20 levels or contains a cycle HOT 4
- Error on submitting a compatability answer
- Buying portfolio splits mana evenly among markets
- Twitter cards don't render the og:image HOT 2
- Received notification about me liking my own market
- Back-navigation scrolls to next boosted post
- Prompted to rate whether the question-asker honestly resolved the question, even when a mod resolved it instead
- Limit order notification always show M$0 HOT 1
- Social preview for topic pages HOT 1
- Standing / Condition-based Orders
- Using `me` endpoint in short amount if time with different api keys will return the same user twice
- Email notifications should be threaded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manifold.