René's URL Explorer Experiment


Title: Make "between" query conditions use index data · Issue #1186 · objectbox/objectbox-java · GitHub

Open Graph Title: Make "between" query conditions use index data · Issue #1186 · objectbox/objectbox-java

X Title: Make "between" query conditions use index data · Issue #1186 · objectbox/objectbox-java

Description: Build info ObjectBox version: 3.5.0 OS: Android 14 Device/ABI/architecture: Pixel 8 Pro Steps to reproduce I have a database that contains say 100,000 rows. I try to query 20,000 rows using an id + a between query on an indexed long. It ...

Open Graph Description: Build info ObjectBox version: 3.5.0 OS: Android 14 Device/ABI/architecture: Pixel 8 Pro Steps to reproduce I have a database that contains say 100,000 rows. I try to query 20,000 rows using an id +...

X Description: Build info ObjectBox version: 3.5.0 OS: Android 14 Device/ABI/architecture: Pixel 8 Pro Steps to reproduce I have a database that contains say 100,000 rows. I try to query 20,000 rows using an id +...

Opengraph URL: https://github.com/objectbox/objectbox-java/issues/1186

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make \"between\" query conditions use index data","articleBody":"### Build info\r\n\r\n- ObjectBox version: 3.5.0\r\n- OS: Android 14\r\n- Device/ABI/architecture: Pixel 8 Pro\r\n\r\n### Steps to reproduce\r\n\r\nI have a database that contains say 100,000 rows. I try to query 20,000 rows using an id + a between query on an indexed long. It takes ~1.5 seconds in average, sometime up to 5-10s.\r\n\r\nData is frequently written to the database, about 40 times per second. Is that an issue? About 2400 rows are added per second in total between these writes.\r\n\r\nThe relativeSamplingTimestamp that is used as index has 2 values for the same timestamp in all cases (2 different data streams with same time). Like:\r\n\r\n1\r\n1\r\n2\r\n2\r\n3\r\n3\r\n...\r\n\r\n### Expected behavior\r\n\r\nI would expect it to be under a 100ms?\r\n\r\n### Actual behavior\r\n\r\nTakes 1-10 seconds. Average 1.5s.\r\n\r\n\r\n### Code\r\n\r\n\u003cdetails\u003e\u003csummary\u003eCode\u003c/summary\u003e\r\n\r\n```java\r\nSchema:\r\n\r\n  @Id\r\n  public long id\r\n  public ToOne\u003cLocalSession\u003e localSession;\r\n  @Convert(converter = Converters.SerializableConverter.class, dbType = byte[].class)\r\n  private HashMap\u003cInteger, Float\u003e samples;\r\n  @Convert(converter = Converters.InstantConverter.class, dbType = Long.class)\r\n  private Instant receptionTimestamp;\r\n  @Nullable\r\n  @Index\r\n  private Integer relativeSamplingTimestamp;\r\n  @Convert(converter = Converters.InstantConverter.class, dbType = Long.class)\r\n  @Index\r\n  @Nullable\r\n  private Instant absoluteSamplingTimestamp;\r\n\r\nQuery:\r\n    samplesRelativeTimestampBetweenQuery = sampleBox.query().equal(Sample_.localSessionId, 0)\r\n        .between(Sample_.relativeSamplingTimestamp, 0, 0).build();\r\n\r\nWhich i then call with parameters like:\r\n\r\nsamplesRelativeTimestampBetweenQuery.setParameter(\r\n            Sample_.localSessionId, localSessionId)\r\n            .setParameters(Sample_.relativeSamplingTimestamp, startTimestamp, endTimestamp)\r\n            .find())\r\n```\r\n\r\n\u003c/details\u003e\r\n","author":{"url":"https://github.com/eric-nextsense","@type":"Person","name":"eric-nextsense"},"datePublished":"2024-08-23T06:59:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/1186/objectbox-java/issues/1186"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d272c60b-c6ef-1183-5d3a-7a3bf07cef27
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDDF0:5E790:1FF8B74:28FB01E:697FCA0F
html-safe-nonceff643fb53ee7647b0faf53ce0bba0dd26fb34b8c3e90932186f316ca31e9b52e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREYwOjVFNzkwOjFGRjhCNzQ6MjhGQjAxRTo2OTdGQ0EwRiIsInZpc2l0b3JfaWQiOiI0MzYxMTUyODg5ODMwMjMwNTQzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac65114e5e119be25c6585e34910d5305f099814c68e9885cdfaca86d437d30872
hovercard-subject-tagissue:2482456341
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/objectbox/objectbox-java/1186/issue_layout
twitter:imagehttps://opengraph.githubassets.com/30033ce4194566a68c8fdb12f713600b66cadb1ca52c5b4cb7b219899a31fcdf/objectbox/objectbox-java/issues/1186
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/30033ce4194566a68c8fdb12f713600b66cadb1ca52c5b4cb7b219899a31fcdf/objectbox/objectbox-java/issues/1186
og:image:altBuild info ObjectBox version: 3.5.0 OS: Android 14 Device/ABI/architecture: Pixel 8 Pro Steps to reproduce I have a database that contains say 100,000 rows. I try to query 20,000 rows using an id +...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeric-nextsense
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/objectbox/objectbox-java git https://github.com/objectbox/objectbox-java.git
octolytics-dimension-user_id22327943
octolytics-dimension-user_loginobjectbox
octolytics-dimension-repository_id79901405
octolytics-dimension-repository_nwoobjectbox/objectbox-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id79901405
octolytics-dimension-repository_network_root_nwoobjectbox/objectbox-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1186#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fobjectbox%2Fobjectbox-java%2Fissues%2F1186
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fobjectbox%2Fobjectbox-java%2Fissues%2F1186
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=objectbox%2Fobjectbox-java
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1186
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1186
Reloadhttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1186
objectbox https://patch-diff.githubusercontent.com/objectbox
objectbox-javahttps://patch-diff.githubusercontent.com/objectbox/objectbox-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Fork 303 https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Star 4.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fobjectbox%2Fobjectbox-java
Code https://patch-diff.githubusercontent.com/objectbox/objectbox-java
Issues 150 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues
Pull requests 4 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulls
Actions https://patch-diff.githubusercontent.com/objectbox/objectbox-java/actions
Projects 0 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/projects
Security 0 https://patch-diff.githubusercontent.com/objectbox/objectbox-java/security
Insights https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulse
Code https://patch-diff.githubusercontent.com/objectbox/objectbox-java
Issues https://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues
Pull requests https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulls
Actions https://patch-diff.githubusercontent.com/objectbox/objectbox-java/actions
Projects https://patch-diff.githubusercontent.com/objectbox/objectbox-java/projects
Security https://patch-diff.githubusercontent.com/objectbox/objectbox-java/security
Insights https://patch-diff.githubusercontent.com/objectbox/objectbox-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/objectbox/objectbox-java/issues/1186
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/objectbox/objectbox-java/issues/1186
Make "between" query conditions use index datahttps://patch-diff.githubusercontent.com/objectbox/objectbox-java/issues/1186#top
enhancementNew feature or requesthttps://github.com/objectbox/objectbox-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/eric-nextsense
https://github.com/eric-nextsense
eric-nextsensehttps://github.com/eric-nextsense
on Aug 23, 2024https://github.com/objectbox/objectbox-java/issues/1186#issue-2482456341
enhancementNew feature or requesthttps://github.com/objectbox/objectbox-java/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.