Comments (15)
I did plan to do this initially, but ended up not needing it for my app.
It will require extra configuration to make collections accessible to reactive-table on the server, but I think it should be doable.
from reactive-table.
I deal with large collections. Tens to hundreds of thousands of records. So, I have to throttle things.
I am not using this in any production apps yet....but I am using it in a Card Issuing system that I am in the middle of building. Card issuing systems have massive records.
In my current production projects I am using my own pagination and filtering and tables but I like yours a lot. Maybe, if I have time maybe I can submit some PRs.
I was thinking server side filtering and pagination should be optional. It shouldn't be mandatory. Maybe as an add-on feature that isn't necessary out of the box.
It really wouldn't take much if I understand your package sufficiently.
I think it would require a method to return total number of records and usage of the skip limit. The field name is known by what is being sorted and keywords is from the filter record. Then just tell users to implement the Session vars that correspond if they want server side pagination and filtering.
from reactive-table.
Glad you like the package :)
I agree that it should be optional. I was thinking something along the lines of having users call a server-side function to register a collection with reactive-table. Any tables with unregistered collections could continue to do everything on the client.
If I remember correctly from my original experimentation, you do need something on the server-side to pass the collection in. I couldn't figure out a way to get the server-side collection based on the client-side one.
from reactive-table.
I've just implemented server-side filtering for the meteor-autocomplete package. Here's the server code - thought it might help. It returns the records from the server collection that match the autocomplete filter.
from reactive-table.
The luma-datatables package apparently does server-side filtering. It certainly does pagination.
from reactive-table.
Any update on this guys? It's really a MUST feature, Not only it does handle a lot of records but it's also a must if you wanna scale you up and make your app efficient!
from reactive-table.
I haven't had time to work on this yet, but I do plan to at some point - it's the biggest limitation of the package.
from reactive-table.
Hey guys, I'm finally working on this and you can try out 0.6.0-beta1.
You'll need to call ReactiveTable.publish on the server - here's some documentation: https://github.com/aslagle/reactive-table/tree/server#server-side-pagination-and-filtering-beta
I wanted to make ReactiveTable.publish similar to Meteor.publish, but it needs a collection instead of a cursor.
There are still some things to work on (it may not work with iron:router yet), but I'm curious what you guys think of this approach and if it will be fast enough.
from reactive-table.
I have been trying this out so far and it works well out of box. Data set size is 3,000 records and I am displaying two on screen, although I am passing in the whole collection...
from reactive-table.
0.6.0-beta2 fixes a bug where rows would be missing if they had been on the previous page the table had subscribed to, which was causing problems with iron:router.
from reactive-table.
I published version 0.6.0 - please let me know if you find any bugs :)
from reactive-table.
there is no documentation on server side pagination.
is the client side pagination make server publish paginate automatically? or there is a custom setting for this?
from reactive-table.
The documentation is here: https://github.com/aslagle/reactive-table#server-side-pagination-and-filtering-beta
from reactive-table.
Any hints on how to make this work with Iron:Router?
from reactive-table.
You won't be able to wait on the subscription with iron:router since it's handled within the reactive-table package, but otherwise it should work fine.
from reactive-table.
Related Issues (20)
- Is there any way to publish distinct rows and pass parameters in publish function? HOT 1
- $or and $and operators in custom Filters HOT 2
- how to set row height ? HOT 1
- injecting spacebar output into a row cell ? HOT 1
- Row numbering Excel-style HOT 2
- checkbox states is lost during navigation HOT 3
- show loader until data is ready for client HOT 3
- Client-side change page number through custom button HOT 3
- Table is not updated when data is $unset (context.server) HOT 1
- Compare two columns data in custom filter HOT 3
- Using _ properly on server HOT 1
- There are multiple templates named 'leaderboard' HOT 8
- `noDataTmpl` changes the DOM structure of the passed-in template HOT 1
- Table only updates when I update the fields from the first document HOT 1
- reactiveTable error: fields option is required with server-side publications HOT 1
- Error: Must use an ordered observe with skip or limit HOT 1
- Support for Bootstrap 4
- Date custom filter on reactive table collection not working HOT 2
- ReactiveTable.publish not working HOT 1
- getting ids of the whole published collection HOT 1
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 reactive-table.